示例#1
0
 /// <summary>
 /// 成本中心服务实现的构造函数
 /// </summary>
 public ValidateCodeService(
     IUnitOfWork unitOfWork,
     IValidateCodeRepository ValidateCodeRepository,
     IcoreUserRepository coreUserRepository,
     IDbContext dbContext)
 {
     _unitOfWork             = unitOfWork;
     _ValidateCodeRepository = ValidateCodeRepository;
     _coreUserRepository     = coreUserRepository;
     SMOSECDbContext         = (SMOSECDbContext)dbContext;
 }
示例#2
0
 /// <summary>
 /// 用户服务实现的构造函数
 /// </summary>
 public UserService(IUnitOfWork unitOfWork,
                    IUserRepository userRepository,
                    IDepartmentRepository departmentRepository,
                    IUserRoleRepository userRoleRepository,
                    IRoleRepository roleRepository,
                    IMenuRepository menuRepository,
                    IValidateCodeRepository validateCodeRepository,
                    IRoleMenuRepository roleMenuRepository)
 {
     _unitOfWork             = unitOfWork;
     _userRepository         = userRepository;
     _departmentRepository   = departmentRepository;
     _userRoleRepository     = userRoleRepository;
     _roleRepository         = roleRepository;
     _menuRepository         = menuRepository;
     _validateCodeRepository = validateCodeRepository;
     _roleMenuRepository     = roleMenuRepository;
 }