public IActionResult GetAll() { try { var jobCategories = _service.GetAllJobCategories(); return(StatusCode((int)HttpStatusCode.OK, jobCategories)); } catch (Exception ex) { return(StatusCode((int)HttpStatusCode.InternalServerError, ex.Message)); } }