geeksarray / how-to-use-areas-in-asp-net-core-mvc

This blog explains how to create Area in ASP.NET Core MVC application, how to use the route for area, configure default area route, link controller action methods from different areas.

Home Page:https://geeksarray.com/blog/how-to-use-areas-in-asp-net-core-mvc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use Areas in ASP.NET Core MVC

This blog explains how to create Area in ASP.NET Core MVC application, how to use the route for area, configure default area route, link controller action methods from different areas.

ASP.NET Core MVC Area is a feature to divide your large application into a small logical group. Areas help to manage application in a better way to separate each functional aspect into different Areas.

Each Area has its own MVC structure by having subfolders for Models, Views, and Controller. For example, in an organization application, you will have a separate area for Employee, Department, Payroll, Attendance, Expense, etc.

For more detailed description - how to use Areas in ASP.NET Core MVC application

Important Files

  1. Department Area - Controllers, Models, Views related to department area. Displays list of locations of sales department.

  2. Employee Area - Controllers, Models, Views related to Employee Area. Displays list of employee belong to specific location.

File Structure of Multiple Areas in ASP.NET Core MVC application

ASP.NET Core MVC multiple area

About

This blog explains how to create Area in ASP.NET Core MVC application, how to use the route for area, configure default area route, link controller action methods from different areas.

https://geeksarray.com/blog/how-to-use-areas-in-asp-net-core-mvc


Languages

Language:C# 91.0%Language:HTML 7.0%Language:CSS 1.7%Language:JavaScript 0.3%