public async Task <List <ComboProduct> > AddComboProductRangeAsync(List <ComboProduct> comboProducts) { if (!comboProducts.Any()) { throw new ArgumentNullException($"{nameof(AddComboProductRangeAsync)} entity must not be null"); } try { await _context.AddRangeAsync(comboProducts); await _context.SaveChangesAsync(); return(comboProducts); } catch (Exception) { throw new Exception($"{nameof(comboProducts)} could not be saved"); } }