Mvc
This part provides methods for working with ViewEngine and other common MVC stuff.
AjaxAttribute
AjaxAttribute
allows to block non-ajax requests to marked controllers or actions.
Controller extensions
Method name
Return type
Description
RenderPartialViewAsync
Task<string>
Renders a partial view using provided model.
RenderViewAsync
Task<string>
Renders a view using provided model.
Sample usage is provided below:
ITempDataDictionary extensions
This extension methods help to work with ITempDataDictionary
:
Method name
Return type
Description
Put
void
Places a specified object in current ITempDataDictionary
serializing it. Overwrites an existing value if needed.
Peek
T
Get object for specified key from current ITempDataDictionary
.
Last updated