/// <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; }
/// <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; }
// 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(); }); }
public UsersController(CinemaDBContext dbContext, IConfiguration configuration) { _configuration = configuration; _auth = new AuthService(_configuration); _dbContext = dbContext; }
public CinemaService(CinemaDBContext db) { _db = db; }
public MoviesController(CinemaDBContext context) { _context = context; }
public SeanceService(CinemaDBContext db) { _db = db; }
public AccountController(CinemaDBContext context) { _context = context; }
public ReviewController(CinemaDBContext context, UserManager <ApplicationUser> userManager) { this.context = context; this.mUserManager = userManager; }
public HomeController(CinemaDBContext context) { db = context; }
public ReserveTicketController(CinemaDBContext context) { this.context = context; }
public ScreeningController(CinemaDBContext context) { db = context; }
//add a constructor and pass the _dbContext parameter here public MoviesCRUDTestController(CinemaDBContext dbContext) { _dbContext = dbContext; }
public MovieStatusCodeController(CinemaDBContext dbContext) { _dbContext = dbContext; }
public MovieService(CinemaDBContext db) { _db = db; }
public ReservationsController(CinemaDBContext dbContext) { _dbContext = dbContext; }
public ScreeningController(CinemaDBContext context) { this.context = context; }
public CulturalEventsController(CinemaDBContext context) { this.context = context; }
public MoviesListController(CinemaDBContext dbContext) { _dbContext = dbContext; //use to access the dbset }
public MoviesFuntionDemoController(CinemaDBContext dbContext) { _dbContext = dbContext; }
public AuthenticationService(CinemaDBContext db) { _db = db; }
public OrdersController(CinemaDBContext context) { _context = context; }