My current code looks like
<!-- some html -->
{
// some code
@Html.Partial("~/Views/AdminUser/Main.cshtml", Model.AdminUserModel)
}
however, i need this to instead be an ajax call. How do I do an jquery ajax call where the model is included in the call?
How I do it is an ajax call passing the id:
and then in your controller have the action set up like
if you do need to pass a model to the controller through ajax, if you create a jquery object that has the same fields as the model and stringify and pass it, it will come through correctly.
etc, then in the ajax call