Mvc
AjaxAttribute
Controller extensions
Method name
Return type
Description
public async Task<IActionResult> DoSomething(int id, string name)
{
var model = new CustomViewModel { Id = id, Name = name };
var result = await this.RenderPartialViewAsync("_CustomPartialView", model);
return Content(result); // This returns string with rendered partial view.
}ITempDataDictionary extensions
Method name
Return type
Description
Last updated