Skip to content

Commit e860f1f

Browse files
Create readme.md
added folder structure tree
1 parent 18d8ff8 commit e860f1f

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

WebAPI/readme.md

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
## Business layered Heirarchy
2+
---
3+
4+
#### DataAccess - Data Layer (Models and Contexts are present here)
5+
- Migration commands are executed in this layer
6+
#### CompanyService - Service Layer (Business Logic is implemented in here)
7+
- This layer uses models to access data from db
8+
#### WebApi - Presentation layer (Here the logic is consumed and data is fed to the UI)
9+
- Controllers are present here
10+
- We add reference to above two layers in this project
11+
12+
## Layer Structure
13+
14+
>
15+
16+
17+
.
18+
├── DataAccess
19+
│ ├── Context
20+
│ │ └── WorkDBContext.cs
21+
│ ├── Migrations
22+
│ └── Models
23+
│ ├── Department.cs
24+
│ └── Employee.cs
25+
├── CompanyService
26+
│ ├── Interfaces
27+
│ │ ├── IDepartmentService.cs
28+
│ │ └── IEmployeeService.cs
29+
│ └── Services
30+
│ ├── DepartmentService.cs
31+
│ └── EmployeeService.cs
32+
├── WebAPI
33+
│ ├── Controllers
34+
│ │ ├── DepartmentController.cs
35+
│ │ └── EmployeeController.cs
36+
│ ├── Photos
37+
│ ├── Properties
38+
│ │ └── launchSettings.cs
39+
│ ├── Program.cs
40+
│ ├── Startup.cs
41+
│ └── appsettings.json
42+
└── ...

0 commit comments

Comments
 (0)