public IActionResult GetJobHistory(int id) { var jobHistoryVm = Mapper.Map <Models.Profile.JobHistory, JobHistoryViewModel>(_jobHistoryService.GetJobHistory(id) ); return(new OkObjectResult(jobHistoryVm)); }
public IActionResult HistoryDetails(long Id) { var result = _jobHistoryService.GetJobHistory(Id); if (result.Status != Common.Enums.StatusEnum.Success) { return(BadRequest()); } var model = result.Value; return(PartialView("_JobHistoryDetailsPartial", model)); }