public AdminController(IUserService userService, ITableService tableService, IChampsService champsService, ILiaisonValueService liaisonValueService, IValueService valueService) { UserService = userService ?? throw new ArgumentNullException(nameof(userService)); TableService = tableService ?? throw new ArgumentNullException(nameof(tableService)); ChampsService = champsService ?? throw new ArgumentNullException(nameof(champsService)); LiaisonValueService = liaisonValueService ?? throw new ArgumentNullException(nameof(liaisonValueService)); ValueService = valueService ?? throw new ArgumentNullException(nameof(valueService)); }
public RegisterModel( IChampsService champsService, IUserService userServices, ITableService tableServices, UserManager <IdentityUser> userManager, SignInManager <IdentityUser> signInManager, ILogger <RegisterModel> logger, IEmailSender emailSender) { ChampsService = champsService ?? throw new ArgumentNullException(nameof(champsService)); UserServices = userServices; TableServices = tableServices; _userManager = userManager; _signInManager = signInManager; _logger = logger; _emailSender = emailSender; }