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.
↧