Пример #1
0
        public MovieController()
        {
            context = new BlockbusterContext();

            // setup AutoMapper configuration
            config = new MapperConfiguration(cfg => {
                cfg.AddProfile <MappingProfile>();
            });
        }
Пример #2
0
 public VideosController(BlockbusterContext db)
 {
     _db = db;
 }
Пример #3
0
 public CustomersController(UserManager <Customer> userManager, SignInManager <Customer> signInManager, BlockbusterContext db)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     _db            = db;
 }