Admin Services - HammerheadShark666/jwm-photography GitHub Wiki

Overview

The Photography Site Admin 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 Admin Business rules sets are called in the service classes, as are the Photography Site Data functions.

The following services are in the project.

  • CategoryService
  • CountryService
  • GalleryPhotoService
  • GalleryService
  • MontageService
  • PaletteService
  • PhotoCatalogService
  • PhotoImportService

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 Admin Services can be found at code