예제 #1
0
        public RedirectToActionResult Edit(Vacancy employee)
        {
            Vacancy newEmployee = _empRepo.GetVacancy(employee.VacancyId);

            newEmployee.Description = employee.Description;
            newEmployee.Date        = employee.Date;
            newEmployee.Time        = employee.Time;


            _empRepo.Edit(newEmployee);
            return(RedirectToAction("AllDetails"));
        }