Skip to content

Instantly share code, notes, and snippets.

@CoreProgramm
Created May 8, 2020 11:26
Show Gist options
  • Save CoreProgramm/302850c622921fa4bdf615804f032e3e to your computer and use it in GitHub Desktop.
Save CoreProgramm/302850c622921fa4bdf615804f032e3e to your computer and use it in GitHub Desktop.
Difference between AddMVC() and AddMvc() Core
public class HomeController : Controller
{
public JsonResult Index()
{
return Json(new { Name = "John Smith", Country = "USA", Designation = "Software Engineer" });
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment