In asp.net mvc there is ViewResult for returning a View and ActionResult for returning whatever you want, so is there some good reason why should I use ViewResult instead of ActionResult when I’m sure that I will return a View ?
In asp.net mvc there is ViewResult for returning a View and ActionResult for returning
Share
ActionResultis the general base class that all the other results are derived from likeViewResult,JsonResultand so on.This way you can return multiple types of results like JSON and XML from the same method.