public OrderService(IUserService userService, IShoppingBagService shoppingBagService, IRepository <Order> orderRepository, KeepHomeContext db, IProductService productService) { this.userService = userService; this.shoppingBagService = shoppingBagService; this.orderRepository = orderRepository; this.dbContext = db; this.productService = productService; }
public async Task InvokeAsync(HttpContext context, KeepHomeContext dbContext, UserManager <KeepHomeUser> userManager, RoleManager <IdentityRole> roleManager) { if (!dbContext.Roles.Any()) { await this.SeedRoles(userManager, roleManager); } //if (!dbContext.Products.Any()) //{ // this.SeedLegla(dbContext); // this.SeedMatraci(dbContext); // this.SeedShkafoveZaMivka(dbContext); //} //if (!dbContext.BlogPosts.Any()) //{ // this.SeedPosts(dbContext); //} await this.next(context); }
public BlogCommentsService(KeepHomeContext dbContext) { this.dbContext = dbContext; }
public BlogPostsService(KeepHomeContext dbContext, IProductService productService) { this.dbContext = dbContext; this.productService = productService; }
public ShoppingBagService(KeepHomeContext db, IProductService productService, IUserService userService) { this.db = db; this.productService = productService; this.userService = userService; }
public ParentCategoryService(KeepHomeContext db) { this.db = db; }
public ChildCategoryService(KeepHomeContext db) { this.db = db; }
public AddressesService(KeepHomeContext dbContext, IUserService userService) { this.dbContext = dbContext; this.userService = userService; }
public ProductService(KeepHomeContext db) { this.db = db; }