Using ActionResult

In this recipe, you will learn how to use ActionResult to return with a Web API. ActionResult is a core type of MVC for returning a result from server to client. ActionResult is a base class and its abstract, so we can use one of the derived classes of it, such as JsonResult, ViewResult, RedirectResult, or FileResult.

Get ASP.NET Core MVC 2.0 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.