public ProductService(StopifyDbContext context) { this.context = context; }
public OrderService(StopifyDbContext context) { this.context = context; }
private async void SeedData(StopifyDbContext context) { context.AddRange(GetDummyData()); await context.SaveChangesAsync(); }
public ProductService(StopifyDbContext context, IMapper mapper) { this.context = context; this.mapper = mapper; }
public ReceiptService(StopifyDbContext context, IOrderService orderService) { this.context = context; this.orderService = orderService; }
public ProductService(StopifyDbContext context, ICloudinaryService cloudinaryService) { this.context = context; this.cloudinaryService = cloudinaryService; }