public async Task <bool> DeleteItemCategory(int itemCategoryId) { if (itemCategoryId == 0) { return(false); } using (var uow = UnitOfWorkProvider.Create()) { if (await itemCategoryService.GetAsync(itemCategoryId) == null) { return(false); } itemCategoryService.Delete(itemCategoryId); await uow.Commit(); return(true); } }