public async Task AddRange(List <PizzaOrder> pizzaOrders) { try { await context.AddRangeAsync(pizzaOrders); await context.SaveChangesAsync(); } catch (Exception ex) { throw ex; } }
public async Task AddRange(List <PizzaOrder> pizzaOrders) { try { await context.AddRangeAsync(pizzaOrders); await context.SaveChangesAsync(); } catch (Exception ex) { throw ex; } }