From the docs, “Razor Pages can make coding page-focused scenarios easier and more productive than using controllers and views.” If your ASP.NET MVC app makes heavy use of views, you may want to consider migrating from actions and views to Razor Pages.
Can we use Razor pages in MVC?
You can also use Razor Pages to improve the organization of larger and more complex ASP.NET Core apps. The Model-View-Controller (MVC) pattern is a mature UI pattern that Microsoft has supported for developing ASP.NET applications since 2009.
Is ASP NET core MVC dead?
ASP.NET MVC is a web application framework developed by Microsoft that implements the model–view–controller (MVC) pattern. It is no longer in active development. … ASP.NET Core has since been released, which unified ASP.NET, ASP.NET MVC, ASP.NET Web API, and ASP.NET Web Pages (a platform using only Razor pages).