Ejemplo n.º 1
0
 public StaffRoleService(IStaffRoleRepository staffRoleRepository)
 {
     this._staffRoleRepository = staffRoleRepository;
     if (!string.IsNullOrEmpty(CurrentUser.DbName))
     {
         this._dbName = CurrentUser.DbName;
     }
 }
Ejemplo n.º 2
0
 public StaffCommandHandler(IUnitOfWork uow,
                            IMediatorHandler bus,
                            IOfficeRepository officeRepository,
                            IRoleRepository roleRepository,
                            IStaffRoleRepository staffRoleRepository,
                            IStaffRepository staffRepository, IMapper mapper) : base(uow, bus)
 {
     _officeRepository    = officeRepository;
     _roleRepository      = roleRepository;
     _staffRepository     = staffRepository;
     _staffRoleRepository = staffRoleRepository;
     _mapper       = mapper;
     _md5Encryptor = new Md5Encryptor();
 }
Ejemplo n.º 3
0
 public StaffService(IStaffRepository staffRepository, IStaffRoleRepository staffRoleRepository)
 {
     _staffRepository     = staffRepository;
     _staffRoleRepository = staffRoleRepository;
 }
 public StaffRoleService(IStaffRoleRepository staffRolesRepository) :
     base(staffRolesRepository)
 {
 }