Exemplo n.º 1
0
 public AccountController(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     IEmailSender emailSender,
     ILogger <AccountController> logger,
     GrandHotelDbContext context)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     _emailSender   = emailSender;
     _logger        = logger;
     _context       = context;
 }
        public ManageController(
            UserManager <ApplicationUser> userManager,
            SignInManager <ApplicationUser> signInManager,
            IEmailSender emailSender,
            ILogger <ManageController> logger,
            UrlEncoder urlEncoder, GrandHotelDbContext context)
        {
            _context = context;

            _userManager   = userManager;
            _signInManager = signInManager;
            _emailSender   = emailSender;
            _logger        = logger;
            _urlEncoder    = urlEncoder;
        }
 //------------Instanciation du DbContext-------------------//
 public ListeChambresController(GrandHotelDbContext context)
 {
     _context = context;
 }
Exemplo n.º 4
0
 public ClientsController(GrandHotelDbContext context)
 {
     _context = context;
 }
Exemplo n.º 5
0
 public ReservationsController(GrandHotelDbContext context)
 {
     _context = context;
 }
 public ReservationsController(GrandHotelDbContext context, UserManager <ApplicationUser> userManager)
 {
     _context     = context;
     _userManager = userManager;
 }
 public ClientsController(GrandHotelDbContext context, UserManager <ApplicationUser> user)
 {
     _user    = user;
     _context = context;
 }
 public ListeFacturesController(GrandHotelDbContext context, UserManager <ApplicationUser> user)
 {
     _user    = user;
     _context = context;
 }