Skip to Main Content
.NET Core 2.0 By Example
book

.NET Core 2.0 By Example

by Neha Shrivastava, Rishabh Verma
March 2018
Beginner to intermediate content levelBeginner to intermediate
458 pages
10h 34m
English
Packt Publishing
Content preview from .NET Core 2.0 By Example

Routing

ASP.NET Core MVC is a powerful URL-mapping software component as it stands on top of ASP.NET Core routing. As a result, we can build apps that have easily understandable and searchable URLs. This way, we can define our app's URL naming patterns that work well for search engine optimization (SEO) and link generation, without having to worry about how the files are physically organized in the server. In the ASP.NET Core MVC framework, routing is defined in the Microsoft.AspNetCore.Mvc.Routing namespace.

Let's look at the code map diagram for routing:

We see HttpMethodAtribute, which has the properties Name, Template, HttpMethods,and ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

ASP.NET Core 3 and React

ASP.NET Core 3 and React

Carl Rippon
Enterprise Application Development with C# 9 and .NET 5

Enterprise Application Development with C# 9 and .NET 5

Ravindra Akella, Rishabh Verma, Arun Kumar Tamirisa, Suneel Kumar Kunani, Bhupesh Guptha Muthiyalu

Publisher Resources

ISBN: 9781788395090Supplemental Content