Can I mix Razor Pages with Razor Views in the same ASP.NET Core 2.0 application?
If I understand correctly, the advantage of using Razor Pages is that they do not need controller actions. In my application, I have several pages that simply return a React application. I feel that Razor Pages perfect for this, because all I need on the page is just a link to the bundle.js file.
Having said that, I have a few pages where I need a controller and submit the view model.
So, is it nice to have both pages and views, or should I stick to one and not mix them together?
source share