Exemple #1
0
 public cUnitOfWork(
     AppDbContext context,
     iFileRepository fileRepository,
     iVersionRepository versionRepository,
     iFileStatusRepository fileStatusRepository,
     iVersionFileRepository versionFileRepository,
     iUserRepository userRepository,
     iRoleRepository roleRepository,
     iUserRoleRepository userRoleRepository,
     iAcceptanceStatusRepository acceptanceStatusRepository,
     iVersionStatusRepository versionStatusRepository,
     iDomainRepository domainRepository
     )
 {
     _Context                    = context;
     _FileRepository             = fileRepository;
     _VersionRepository          = versionRepository;
     _FileStatusRepository       = fileStatusRepository;
     _VersionFileRepository      = versionFileRepository;
     _UserRepository             = userRepository;
     _RoleRepository             = roleRepository;
     _UserRoleRepository         = userRoleRepository;
     _AcceptanceStatusRepository = acceptanceStatusRepository;
     _VersionStatusRepository    = versionStatusRepository;
     _DomainRepository           = domainRepository;
 }
Exemple #2
0
        public UserProvider()
        {
            Context context = new Context();

            _iMsgRepository = new MsgRepository(context);

            _iUserRepository = new UserRepository(context);
        }
 public UsersController(iUserRepository userRepository, IMapper mapper, iPhotoService photoService)
 {
     _photoService   = photoService;
     _mapper         = mapper;
     _userRepository = userRepository;
 }
Exemple #4
0
 public UsersController(iUserRepository userRepo)
 {
     _userRepo = userRepo;
 }
Exemple #5
0
 public LoginController(iUserRepository _usersRepo)
 {
     this.usersRepo = _usersRepo;
 }