Пример #1
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="context">The injected context</param>
 /// <param name="signInManager">The Identity sign in manager</param>
 /// <param name="userManager">The Identity user manager</param>
 public UserController(
     CinemaDBContext context,
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager)
 {
     mContext       = context;
     mUserManager   = userManager;
     mSignInManager = signInManager;
 }
Пример #2
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="context">The injected context</param>
 /// <param name="signInManager">The Identity sign in manager</param>
 /// <param name="userManager">The Identity user manager</param>
 public UserapiController(
     CinemaDBContext context,
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     RoleManager <IdentityRole> roleManager)
 {
     mContext       = context;
     mUserManager   = userManager;
     mSignInManager = signInManager;
     mRoleManager   = roleManager;
 }
Пример #3
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        // add a new dbContext variable for internal reference to create a new database
        public void Configure(IApplicationBuilder app, IWebHostEnvironment env, CinemaDBContext dbContext)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

            app.UseHttpsRedirection();

            app.UseRouting();

            app.UseAuthorization();

            // EnsureCreated method will make sure if a database is being created.
            // If no specified db exists, a new db will be created, otherwise no
            // action will be taken.  Only use this method if you don't have to update
            // or make changes to your database in the future.
            //dbContext.Database.EnsureCreated();

            app.UseEndpoints(endpoints =>
            {
                endpoints.MapControllers();
            });
        }
Пример #4
0
 public UsersController(CinemaDBContext dbContext, IConfiguration configuration)
 {
     _configuration = configuration;
     _auth          = new AuthService(_configuration);
     _dbContext     = dbContext;
 }
Пример #5
0
 public CinemaService(CinemaDBContext db)
 {
     _db = db;
 }
Пример #6
0
 public MoviesController(CinemaDBContext context)
 {
     _context = context;
 }
Пример #7
0
 public SeanceService(CinemaDBContext db)
 {
     _db = db;
 }
Пример #8
0
 public AccountController(CinemaDBContext context)
 {
     _context = context;
 }
Пример #9
0
 public ReviewController(CinemaDBContext context, UserManager <ApplicationUser> userManager)
 {
     this.context      = context;
     this.mUserManager = userManager;
 }
Пример #10
0
 public HomeController(CinemaDBContext context)
 {
     db = context;
 }
Пример #11
0
 public ReserveTicketController(CinemaDBContext context)
 {
     this.context = context;
 }
Пример #12
0
 public ScreeningController(CinemaDBContext context)
 {
     db = context;
 }
Пример #13
0
 //add a constructor and pass the _dbContext parameter here
 public MoviesCRUDTestController(CinemaDBContext dbContext)
 {
     _dbContext = dbContext;
 }
 public MovieStatusCodeController(CinemaDBContext dbContext)
 {
     _dbContext = dbContext;
 }
Пример #15
0
 public MovieService(CinemaDBContext db)
 {
     _db = db;
 }
Пример #16
0
 public ReservationsController(CinemaDBContext dbContext)
 {
     _dbContext = dbContext;
 }
Пример #17
0
 public ScreeningController(CinemaDBContext context)
 {
     this.context = context;
 }
 public CulturalEventsController(CinemaDBContext context)
 {
     this.context = context;
 }
Пример #19
0
 public MoviesListController(CinemaDBContext dbContext)
 {
     _dbContext = dbContext; //use to access the dbset
 }
 public MoviesFuntionDemoController(CinemaDBContext dbContext)
 {
     _dbContext = dbContext;
 }
 public AuthenticationService(CinemaDBContext db)
 {
     _db = db;
 }
Пример #22
0
 public OrdersController(CinemaDBContext context)
 {
     _context = context;
 }