public async Task Delete(Subcategory subcategory) { if (subcategory.HasConcepts) { throw new DeleteDependencyException(nameof(Subcategory)); } await subcategoryRepository.DeleteCategory(subcategory); await unitOfWork.CompleteAsync(); }
public async Task Delete(Subcategory subcategory) { if (subcategory.HasConcepts) { throw new DeleteDependencyException(nameof(Subcategory)); } await subcategoryRepository.DeleteCategory(subcategory); await unitOfWork.CompleteAsync(); }