File tree 1 file changed +42
-0
lines changed
1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change
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
+ └── ...
You can’t perform that action at this time.
0 commit comments