public ArticlesService(WinesWorldDbContext context) { this.context = context; }
private async Task SeedData(WinesWorldDbContext context) { context.AddRange(GetDummyData()); await context.SaveChangesAsync(); }
public ReceiptsService(WinesWorldDbContext context, IOrdersService ordersService) { this.context = context; this.ordersService = ordersService; }
public OrdersService(WinesWorldDbContext context) { this.context = context; }