public async Task <bool> AddAgendaItemTracks(List <TrackAgendaItem> items) { try { await _dbContext.AddRangeAsync(items); await _dbContext.SaveChangesAsync(); return(true); } catch (Exception ex) { throw ex; } }
public async Task <List <OrderItem> > SaveOrderItems(List <OrderItem> items) { try { await _dbContext.AddRangeAsync(items); await _dbContext.SaveChangesAsync(); return(items); } catch (Exception ex) { throw ex; } }