示例#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;
 }