Answers for "useareas in net core"

C#
0

useareas in net core

app.UseEndpoints(endpoints =>
{
    endpoints.MapControllerRoute(
        name: "MyArea",
        pattern: "{area:exists}/{controller=Home}/{action=Index}/{id?}");

    endpoints.MapControllerRoute(
        name: "default",
        pattern: "{controller=Home}/{action=Index}/{id?}");
});
Posted by: Guest on April-08-2021

C# Answers by Framework

Browse Popular Code Answers by Language