public UsersController(IRepository <User> _repository, IMapper _mapper, IUsersInterface userService, AppSettings appSettings)
 {
     Repository   = _repository;
     Mapper       = _mapper;
     _userService = userService;
     _appSettings = appSettings;
 }
 public UsersComponentController(IMapper _mapper, IUsersInterface usersService, IOptions <AppSettings> appSettings, IRepository <Role> roleRepo)
 {
     Mapper       = _mapper;
     UsersService = usersService;
     _appSettings = appSettings.Value;
     Repository   = roleRepo;
 }
 public UserViewModel(UserSearchViewModel userSearch, IUsersInterface userService,
                      UserAddEditViewModel userAddEdit)
     : base(userSearch, userAddEdit)
 {
     PostDataRetrievalDelegate = (list) =>
     {
         userService.UpdateCanSelect(list);
     };
 }
Beispiel #4
0
 public UserController(IMapper _mapper, IUsersInterface usersService, IOptions <AppSettings> appSettings)
 {
     Mapper       = _mapper;
     UsersService = usersService;
     _appSettings = appSettings.Value;
 }