public async Task <ActionResult> Delete(int id) { Item item = await _itemGroupRepository.Get(id); if (item == null) { return(NotFound()); } _itemGroupRepository.Delete(item); await _itemGroupRepository.Save(); return(NoContent()); }
public bool Delete(string id) { return(_res.Delete(id)); }