Mvc
Last updated
Last updated
This part provides methods for working with ViewEngine and other common MVC stuff.
AjaxAttribute
allows to block non-ajax requests to marked controllers or actions.
Method name | Return type | Description |
---|---|---|
Sample usage is provided below:
This extension methods help to work with ITempDataDictionary
:
Method name | Return type | Description |
---|---|---|
RenderPartialViewAsync
Task<string>
Renders a partial view using provided model.
RenderViewAsync
Task<string>
Renders a view using provided model.
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
.