示例#1
0
        public async Task <bool> AddAgendaItemTracks(List <TrackAgendaItem> items)
        {
            try
            {
                await _dbContext.AddRangeAsync(items);

                await _dbContext.SaveChangesAsync();

                return(true);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
示例#2
0
        public async Task <List <OrderItem> > SaveOrderItems(List <OrderItem> items)
        {
            try
            {
                await _dbContext.AddRangeAsync(items);

                await _dbContext.SaveChangesAsync();

                return(items);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }