public ManagerController(BeanSceneDBContext beanSceneDBContext,
                          iServices services
                          )
 {
     _context  = beanSceneDBContext;
     _services = services;
 }
 public BookingController(BeanSceneDBContext beanSceneDBContext,
                          iServices services
                          )
 {
     _context  = beanSceneDBContext;
     _services = services;
 }
예제 #3
0
 private readonly UserManager <AppUser> _userManager;        //access the identity users
 public ReservationController(BeanSceneDBContext beanSceneDBContext,
                              iServices reservationServices,
                              IHttpContextAccessor httpContextAccessor,
                              UserManager <AppUser> userManager)
 {
     _httpContextAccessor = httpContextAccessor;
     _context             = beanSceneDBContext;
     _reservationServices = reservationServices;
     _userManager         = userManager;
 }
예제 #4
0
 public AdminController(BeanSceneDBContext beanSceneDBContext,
                        RoleManager <IdentityRole> roleManager,
                        UserManager <AppUser> userManager,
                        iServices services)
 {
     _services    = services;
     _roleManager = roleManager;
     _userManager = userManager;
     _context     = beanSceneDBContext;
 }
 public ReservationsHistoryModel(BeanSceneDBContext beanSceneDBContext,
                                 iServices services,
                                 IHttpContextAccessor httpContextAccessor,
                                 UserManager <AppUser> userManager, ILogger <PersonalDataModel> logger
                                 )
 {
     _context             = beanSceneDBContext;
     _services            = services;
     _httpContextAccessor = httpContextAccessor;
     _logger      = logger;
     _userManager = userManager;
 }