Пример #1
0
 public UsersController(IUnitOfWork unitOfWork, IAddUserService addUserService, IEditUserService editUserService, UserManager <User> userManager, IHttpContextAccessor httpContextAccessor)
 {
     this.unitOfWork      = unitOfWork;
     this.addUserService  = addUserService;
     this.editUserService = editUserService;
     caller = httpContextAccessor.HttpContext.User;
 }
Пример #2
0
 // GET: UserController
 public UserController(IGetUsersService getUsersService, IGetRolesService getRolesService,
                       IRegisterUserService registerUserService, IDeleteUserService deleteUserService,
                       IUserStatusChangeService userStatusChangeService, IEditUserService editUserService)
 {
     _getUsersService         = getUsersService;
     _getRolesService         = getRolesService;
     _registerUserService     = registerUserService;
     _deleteUserService       = deleteUserService;
     _userStatusChangeService = userStatusChangeService;
     _edituserservice         = editUserService;
 }