//JobView protected ActionResult JobView(string employeeId) { var jobInfo = _employeeService.GetJobInformation(new GetJobInformationInput { EmployeeId = _employee.Id }); jobInfo = jobInfo ?? new JobInformationDto { Id = _employee.Id, JoinDate = DateTime.UtcNow }; ViewBag.JobId = new SelectList(_jobConfigurationService.GetJobs().Items, "Id", "Title", jobInfo.JobId); ViewBag.StatusId = new SelectList(_jobConfigurationService.GetEmploymentStatuses().Items, "Id", "Name", jobInfo.StatusId); ViewBag.JobCategoryId = new SelectList(_jobConfigurationService.GetJobCategories().Items, "Id", "Name", jobInfo.JobCategoryId); ViewBag.LocationId = new SelectList(_organisationService.GetLocations().Items, "Id", "Name", jobInfo.LocationId); ViewBag.UnitId = new SelectList(_organisationService.GetUnits().Items, "Id", "Name", jobInfo.UnitId); return(View("EmployeeDetail/Job/Job", jobInfo)); }