public EditEmploymentInfomationForEmployeeViewModel GetEmploymentInformationForEdit(int?id)
        {
            var employee = _employeeRepository.GetById(id);

            var model = new EditEmploymentInfomationForEmployeeViewModel
            {
                Id             = employee.EmploymentInformation.Id,
                EmployeeId     = employee.Id,
                EmploymentDate = employee.EmploymentInformation.EmploymentDate,
                JubileeDate    = employee.EmploymentInformation.JubileeDate,
                DateForFormalProfessionalCompetence = employee.EmploymentInformation.DateForFormalProfessionalCompetence,
                DateForFormalTeachingSkills         = employee.EmploymentInformation.DateForFormalTeachingSkills
            };

            return(model);
        }
 public ActionResult EditEmploymentInformation(EditEmploymentInfomationForEmployeeViewModel input)
 {
     _employeeService.EditEmploymentInformation(input.Id, input.EmploymentDate, input.JubileeDate, input.DateForFormalProfessionalCompetence, input.DateForFormalTeachingSkills);
     return(RedirectToAction("Index"));
 }