public async Task <bool> UpdateItemCategoryAsync(ItemCategoryDto itemCategory) { if (itemCategory == null) { return(false); } using (var uow = UnitOfWorkProvider.Create()) { if (await itemCategoryService.GetAsync(itemCategory.Id) == null) { return(false); } await itemCategoryService.Update(itemCategory); await uow.Commit(); return(true); } }