I am pretty new to the C# and ASP.NET and now I am trying to understand what does the Endpoint in ASP.NET mean, or what is the essence of this concept, thank you!
Example:
app.UseMvc(route =>
{
route.MapRoute(name:"default", template:"{controller=Home}/{action=index}/{id?}");
});
app.UseEndpoints(endpoints =>
{
endpoints.MapControllerRoute(
name: "default",
pattern: "{controller=Home}/{action=Index}/{id?}");
});
What are the differences when using this two method?