What is Routing: Routes maps controllers names and their actions names. It is used to create user friendly URL.It can be also use to setup startup page of application just like ASP.NET web forms. the routing system lets you create any pattern of URLs you desire and express them in a clear and concise manner.
Map Route Functions. It has collections of routes and invokes routes.
Need of Routing
Old URL pattern
www.OnlineShop.com/Mobiles.aspx?catId=8
www.OnlineShop.com/Mobiles.aspx?catId=9
www.OnlineShop.com/Mobiles.aspx?catId=15
pasting

Join the conversation! Your thoughts help the community grow.