Esempio n. 1
0
 /// <summary>
 /// Create units and mappers for work.
 /// </summary>
 /// <param name="mapperDTO">Mapper for converting database entities to DTO entities</param>
 /// <param name="rentUnit">Rent unit of work</param>
 /// <param name="identityUnit">Udentity unit of work</param>
 /// <param name="identityMapper">Mapper for converting identity entities to BLL classes</param>
 /// <param name="logService">Service for logging</param>
 public Service(IRentMapperDTO mapperDTO, IRentUnitOfWork rentUnit,
                IIdentityUnitOfWork identityUnit, IIdentityMapperDTO identityMapper, ILogService logService)
 {
     RentMapperDTO      = mapperDTO;
     RentUnitOfWork     = rentUnit;
     IdentityMapperDTO  = identityMapper;
     IdentityUnitOfWork = identityUnit;
     LogService         = logService;
 }
Esempio n. 2
0
 /// <summary>
 /// Create units and mappers for work.
 /// </summary>
 /// <param name="mapperDTO">Mapper for converting database entities to DTO entities</param>
 /// <param name="rentUnit">Rent unit of work</param>
 /// <param name="identityUnit">Udentity unit of work</param>
 /// <param name="identityMapper">Mapper for converting identity entities to BLL classes</param>
 /// <param name="log">Service for logging</param>
 public ManagerService(IRentMapperDTO mapperDTO, IRentUnitOfWork rentUnit,
                       IIdentityUnitOfWork identityUnit, IIdentityMapperDTO identityMapper, ILogService log)
     : base(mapperDTO, rentUnit, identityUnit, identityMapper, log)
 {
 }