public async Task <ActionResult> GetServiceCategories() { var response = await _serviceCategoryService.GetAllServiceCategory(); if (response.StatusCode >= 400) { return(StatusCode(response.StatusCode, response)); } var serviceCategories = ((ApiOkResponse)response).Result; return(Ok(serviceCategories)); }