예제 #1
0
 public IdentityUserAdministrationService(UserManager <IdentityUser> userManager,
                                          IUserAdministrationService service,
                                          IMapper mapper,
                                          IEmailSender emailSender)
 {
     _userManager = userManager;
     _service     = service;
     _mapper      = mapper;
     _emailSender = emailSender;
 }
예제 #2
0
 /// <summary>
 /// Initialise an instance of the <see cref="PatientRecordController"/>
 /// </summary>
 /// <param name="log"></param>
 /// <param name="patientRecordSvc"></param>
 /// <param name="userAdminSvc"></param>
 /// <param name="patientAdminSvc"></param>
 /// <param name="appointmentBookService"></param>
 public PatientRecordController(
     ILogger <PatientRecordController> log,
     IPatientRecordService patientRecordSvc,
     IUserAdministrationService userAdminSvc,
     IPatientAdministrationService patientAdminSvc,
     IAppointmentBookService appointmentBookService)
 {
     _log = log ?? throw new ArgumentNullException(nameof(log));
     _patientRecordSvc       = patientRecordSvc ?? throw new ArgumentNullException(nameof(patientRecordSvc));
     _userAdminSvc           = userAdminSvc ?? throw new ArgumentNullException(nameof(userAdminSvc));
     _patientAdminSvc        = patientAdminSvc ?? throw new ArgumentNullException(nameof(patientAdminSvc));
     _appointmentBookService = appointmentBookService;
 }
예제 #3
0
 public RolesController(IUserRoleAdministrationService userRoleAdministrationService, IUserAdministrationService userAdministrationService)
 {
     this.userRoleAdministrationService = userRoleAdministrationService;
     this.userAdministrationService     = userAdministrationService;
 }
예제 #4
0
 public ClientsController(IClientAdministrationService clientAdministrationService, IGarageAdministrationService garageAdministrationService, IUserAdministrationService userAdministrationService)
 {
     this.clientAdministrationService = clientAdministrationService;
     this.garageAdministrationService = garageAdministrationService;
     this.userAdministrationService   = userAdministrationService;
 }
예제 #5
0
 /// <summary>
 /// Initialize an instance of the <see cref="UserAdminController"/> class
 /// </summary>
 /// <param name="logger"></param>
 /// <param name="userAdminSvc"></param>
 public UserAdminController(ILogger <UserAdminController> logger, IUserAdministrationService userAdminSvc)
 {
     _logger       = logger ?? throw new ArgumentNullException(nameof(logger));
     _userAdminSvc = userAdminSvc ?? throw new ArgumentNullException(nameof(userAdminSvc));
 }
 public UserController(IUserRepository repository, ILogger <UserController> logger, IUserAdministrationService service)
 {
     this.repository = repository;
     this.logger     = logger;
     this.service    = service;
 }
 public UsersAdministrationController(IUserAdministrationService userAdministrationService, ICacheService cache)
 {
     this.userAdministrationService = userAdministrationService;
     this.cache = cache;
 }