Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
 public EmployeeInfo GetByEmployeeId(int employeeId)
 {
     return(_employeeInfoRepository.GetByEmployeeId(employeeId));
 }