public RegisterModel( UserManager <Vidly_KursUser> userManager, SignInManager <Vidly_KursUser> signInManager, ILogger <RegisterModel> logger, IEmailSender emailSender, Vidly_KursContext context) { _context = context; _userManager = userManager; _signInManager = signInManager; _logger = logger; _emailSender = emailSender; }
private readonly Vidly_KursContext _context; //Tworzymy prop dla kontextu bazy danych public CustomerController(Vidly_KursContext context) //Dependency injection { _context = context; //Ustawiamy kontext }
public WyporzyczeniaController(Vidly_KursContext context) { _context = context; }
public MoviesController(Vidly_KursContext context) { _context = context; }
public CustomersController(Vidly_KursContext vidlyKursContext) { _context = vidlyKursContext; }