Пример #1
0
 public ExerciseController(GymLadContext context, IMapper mapper, UserManager <Person> userManager, IAuthorizationService authorisationService)
 {
     _context              = context;
     _mapper               = mapper;
     _userManager          = userManager;
     _authorisationService = authorisationService;
 }
Пример #2
0
 public PersonController(GymLadContext context,
                         IMapper mapper,
                         UserManager <Person> userManager,
                         SignInManager <Person> signInManager,
                         IOptions <TokenManagement> tokenManagement,
                         IAuthorizationService authorisationService)
 {
     _context              = context;
     _mapper               = mapper;
     _userManager          = userManager;
     _signInManager        = signInManager;
     _tokenManagement      = tokenManagement.Value;
     _authorisationService = authorisationService;
 }
Пример #3
0
 public SetController(GymLadContext context, IMapper mapper, IAuthorizationService authorisationService)
 {
     _context = context;
     _mapper  = mapper;
     _authorisationService = authorisationService;
 }