public async Task <ApiResponse> DeleteServiceCategory(long id) { var serviceCategoryToDelete = await _serviceCategoryRepo.FindServiceCategoryById(id); if (serviceCategoryToDelete == null) { return(new ApiResponse(404)); } if (!await _serviceCategoryRepo.DeleteServiceCategory(serviceCategoryToDelete)) { return(new ApiResponse(500)); } return(new ApiOkResponse(true)); }