Quantcast
Channel: ASPSnippets RSS Feed
Viewing all articles
Browse latest Browse all 4751

ASP.Net MVC VOID ActionResult: Controller Action method without return View

$
0
0
Here Mudassar Ahmed Khan has explained with an example, how to create a VOID ActionResult (Action Method) i.e. an ActionResult (Action Method) inside Controller that does not return View in ASP.Net MVC Razor. There is nothing like a VOID ActionResult (Action Method), hence ASP.Net MVC has created a class EmptyResult whose object is returned in case when NULL value or Nothing needs to be returned from Controller to View in ASP.Net MVC Razor.

Viewing all articles
Browse latest Browse all 4751

Trending Articles