public virtual ActionResult Edit(int id) { var viewModel = GetEmployeeViewModel(_employeeInfoRepository.GetByEmployeeId(id)); viewModel.IsPrivate = _settingRepository.GetSettingValue(SettingValue.IS_PRIVATE_COMPANY, "true") == "true"; ViewBag.Title = "Edit Employee"; ViewBag.FormAction = "/Employee/Edit"; return(View("Details", viewModel)); }
public EmployeeInfo GetByEmployeeId(int employeeId) { return(_employeeInfoRepository.GetByEmployeeId(employeeId)); }