issues
search
alexbohomol
/
ContosoUniversity.Mvc5
My good-parts reference playground, based on ContosoUniversity tutorial (Asp.Net 4.6 stack)
0
stars
0
forks
source link
Involve Services Layer
#5
Open
alexbohomol
opened
8 years ago
alexbohomol
commented
8 years ago
We need
service-layer
to perform
business-centric
operations
to provide
business-ready
workflows for controllers
to
decouple
presentation layer from data-layer (as possible)
alexbohomol
commented
8 years ago
ContosoUniversity.Business
project involved
Introduced
CoursesService
implementing
ICoursesService
Refactored
CourseController
to use the
ICoursesService
instead of direct use of data-layer (
UoW
)
alexbohomol
commented
8 years ago
Introduced
StudentsService
implementing
IStudentsService
Refactored
StudentController
to use the
IStudentService
instead of direct use of data-layer (
UoW
)
We need service-layer