I want to use MVC, Razor Pages & Web API within the same project. How do I set the default page to go to a MVC view and not a Razor Page? The default page should go to ~/Views/ToDo/Index.cshtml and not ~/Pages/Index.cshtml.
public void ConfigureServices(IServiceCollection services) { services.AddMvc(); } public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { // Deleted for brevity ... app.UseEndpoints(endpoints => { endpoints.MapRazorPages(); endpoints.MapControllers(); endpoints.MapControllerRoute( name: "default", pattern: "{controller=ToDo}/{action=Index}/{id?}"); }); } 
