Exemple #1
0
 public AdminController(
     IUserDeveloperRepository userDeveloperRepository,
     IUserLeaderRepository userLeaderRepository,
     IUserManagerRepository userManagerRepository)
 {
     this.userDeveloperRepository = userDeveloperRepository;
     this.userLeaderRepository    = userLeaderRepository;
     this.userManagerRepository   = userManagerRepository;
 }
Exemple #2
0
 public AccountManagerRepository(tlrmCartonContext tccontext, IMapper mapper, ITokenServicesRepository tokenServiceRepository,
                                 IUserPasswordManagerRepository userPasswordRepository, IUserManagerRepository userManagerRepository)
 {
     _tcContext = tccontext;
     _mapper    = mapper;
     _tokenServiceRepository = tokenServiceRepository;
     _userPasswordRepository = userPasswordRepository;
     _userManagerRepository  = userManagerRepository;
 }
Exemple #3
0
 public SchoolInfoService(
     ILogger <SchoolInfoService> logger,
     IUserManagerRepository userManagerRepository,
     SchoolUserPublish schoolUser
     )
 {
     Logger = logger;
     UserManagerRepository = userManagerRepository;
     SchoolUser            = schoolUser;
 }
Exemple #4
0
 public ProjectManagerController(IUserManagerRepository userManagerRepository,
                                 IUserTeamLeaderRepository userTeamLeaderRepository,
                                 IUserDeveloperRepository userDeveloperRepository,
                                 IManagerRepository managerRepository)
 {
     this.userManagerRepository    = userManagerRepository;
     this.userTeamLeaderRepository = userTeamLeaderRepository;
     this.userDeveloperRepository  = userDeveloperRepository;
     this.managerRepository        = managerRepository;
 }
Exemple #5
0
 public ProjectManagerController(
     IProjectManagerRepository projectManagerRepository,
     IUserLeaderRepository userLeaderRepository,
     IUserManagerRepository userManagerRepository,
     IUserDeveloperRepository userDeveloperRepository)
 {
     this.projectManagerRepository = projectManagerRepository;
     this.userLeaderRepository     = userLeaderRepository;
     this.userManagerRepository    = userManagerRepository;
     this.userDeveloperRepository  = userDeveloperRepository;
 }
Exemple #6
0
 public UserRoleController(
     IUserManagerRepository userManager
     , IRoleManager roleManager
     , IUserRoleRepository userRoleRepository
     , IRoleRepository roleRepository
     , IUserRepository userRepository)
 {
     _userManager        = userManager;
     _roleManager        = roleManager;
     _userRoleRepository = userRoleRepository;
     _roleRepository     = roleRepository;
     _userRepository     = userRepository;
 }
 public UserContractController(
     IUserManagerRepository userManager
     , IUserContractRepository userContractRepository
     , IUserContractService userContractService
     , IUserRepository userRepository
     , IContractRepository contractRepository
     , IMapper mapper)
 {
     _userManager            = userManager;
     _userContractRepository = userContractRepository;
     _userContractService    = userContractService;
     _userRepository         = userRepository;
     _contractRepository     = contractRepository;
     _mapper = mapper;
 }
Exemple #8
0
 public ProjectController(
     IprojectRepository projectRepository,
     IUserManagerRepository userManagerRepository,
     IUserTeamLeaderRepository userTeamLeaderRepository,
     IUserDeveloperRepository userDeveloperRepository,
     IDeveloperRepository developerRepository,
     IManagerRepository managerRepository
     )
 {
     this.projectRepository        = projectRepository;
     this.userManagerRepository    = userManagerRepository;
     this.userTeamLeaderRepository = userTeamLeaderRepository;
     this.userDeveloperRepository  = userDeveloperRepository;
     this.developerRepository      = developerRepository;
     this.managerRepository        = managerRepository;
 }
Exemple #9
0
 public AccountApiController(IUserManagerRepository userManager)
 {
     _udb = userManager;
 }
 public MainUserController(IUserManagerRepository userManagerRepository, IUserTeamLeaderRepository userTeamLeaderRepository, IUserDeveloperRepository userDeveloperRepository)
 {
     this.userManagerRepository    = userManagerRepository;
     this.userTeamLeaderRepository = userTeamLeaderRepository;
     this.userDeveloperRepository  = userDeveloperRepository;
 }
Exemple #11
0
 public MeetingsGeneralApiController(IUserManagerRepository udb, IMeetingsRepository mbd, IMeetingRoomRepository meetingRoomRepository)
 {
     _udb = udb;
     _mdb = mbd;
     _meetingRoomRepository = meetingRoomRepository;
 }
Exemple #12
0
 public UserController(IUserManagerRepository userRepository, UserService userService)
 {
     _userRepository = userRepository;
     _userService    = userService;
 }
Exemple #13
0
 public GetUserMeetingsApiController(IUserManagerRepository udb, IMeetingsRepository mbd)
 {
     _udb = udb;
     _mdb = mbd;
 }
 public UserManagerService(IUserManagerRepository userManager)
 {
     _userManager = userManager;
 }
 public PickListController(IPickListManagerRepository pickListRepository, IUserManagerRepository workerRepository)
 {
     _pickListRepository = pickListRepository;
     _workerRepository   = workerRepository;
 }
 public UserService(IUserManagerRepository userRepository, IUnitOfWork <AltamiraContext> unitOfWork)
 {
     this.userRepository = userRepository;
     this.unitOfWork     = unitOfWork;
 }
        private void CreateRolesAndUsers(IRoleManagerRepository _roleManagerRepository, IUserManagerRepository _userManagerRepository)
        {
            if (_roleManagerRepository.RoleExists("Admin") == false)
            {
                var role = new IdentityRole("Admin");
                _roleManagerRepository.CreateRole(role);

                var user = new ApplicationUser();
                user.UserName = "******";
                user.Email    = "*****@*****.**";

                string password = "******";

                var checkUser = _userManagerRepository.CreateUser(user, password);

                if (checkUser.Succeeded)
                {
                    _userManagerRepository.AddToRole(user.Id, role.Name);
                }
            }

            if (_roleManagerRepository.RoleExists("Owner") == false)
            {
                _roleManagerRepository.CreateRole(new IdentityRole("Owner"));
            }

            if (_roleManagerRepository.RoleExists("Employee") == false)
            {
                _roleManagerRepository.CreateRole(new IdentityRole("Employee"));
            }
        }
Exemple #18
0
 public LoginApiController(IUserManagerRepository mdb)
 {
     _udb = mdb;
 }
Exemple #19
0
 public UserManager(IUserManagerRepository userManagerRepository,
                    ILogger <UserManager> logger)
 {
     this.logger = logger;
     this.userManagerRepository = userManagerRepository;
 }
Exemple #20
0
 public MoneyController(IUserManagerRepository mdb, IMoneyRepository moneyRepository)
 {
     _udb             = mdb;
     _moneyRepository = moneyRepository;
 }
 public UserManagerServices(IBaseRepository <UserManager> baseRepository, IUserManagerRepository userManagerRepository) : base(baseRepository)
 {
     _userManagerRepository = userManagerRepository;
 }
 public UserManagerController(IUserManagerRepository injectedRepository)
 {
     _repository = injectedRepository;
 }