public IActionResult ViewAll() { var result = _jobHistoryService.GetJobHistoryForUser(User.Identity.GetUserProfileId() ?? default(long)); if (result.Status != Common.Enums.StatusEnum.Success) { return(BadRequest()); } var model = result.Value; return(PartialView("_ViewAllPartial", model)); }