예제 #1
0
 public DetailsModel(DevShop.Data.DevShopDbContext context, UserManager <ExtendedIdentityUser> userManager)
 {
     _userManager = userManager;
     _context     = context;
     ViewModel    = new DetailsPageViewModel();
     ReturnUrl    = "/Account/Cart";
 }
예제 #2
0
 public IndexModel(DevShop.Data.DevShopDbContext context)
 {
     _context  = context;
     ViewModel = new IndexPageViewModel();
 }
예제 #3
0
 public DbSeeder(DevShopDbContext ctx, UserManager <ExtendedIdentityUser> userManager)
 {
     _ctx         = ctx;
     _userManager = userManager;
 }
예제 #4
0
 public AddBookModel(DevShop.Data.DevShopDbContext context)
 {
     _context = context;
 }