public async Task <IActionResult> UpdateById(long id, ServiceCategoryReceivingDTO serviceCategoryReceivingDTO) { var response = await _serviceCategoryService.UpdateServiceCategory(id, serviceCategoryReceivingDTO); if (response.StatusCode >= 400) { return(StatusCode(response.StatusCode, response)); } var serviceCategory = ((ApiOkResponse)response).Result; return(Ok(serviceCategory)); }