Site Services - HammerheadShark666/jwm-photography GitHub Wiki
Overview
The Photography Site Services folder contains the service classes. The service classes provide the functions that do the actual work for the actions. This includes getting data and the add/edit/delete of domain object. The Photography Site Business rules sets are called in the service classes, as are the Photography Site Data functions.
The following services are in the project.
- FavouriteService
- GalleryService
- MontageService
- UserGalleryPhotoService
- UserGalleryService
When adding, editing or deleting domain objects, a data transfer object is passed into the appropriate function, this is then converted to the domain object via AutoMapper. Business rules are then applied to the domain object. If the domain object is valid then it can be saved/deleted.
Code
The code for Site Services can be found at code