예제 #1
0
 public Task RemoveItemAsync(PurchasingGroup entity)
 {
     _context.Groups.Remove(entity);
     return(Task.CompletedTask);
 }
예제 #2
0
        public Task <PurchasingGroup> UpdateItemAsync(PurchasingGroup item)
        {
            var result = _context.Update(item).Entity;

            return(Task.FromResult(result));
        }
예제 #3
0
 public async Task <PurchasingGroup> AddItemAsync(PurchasingGroup item)
 => (await _context.Groups.AddAsync(item)).Entity;