Пример #1
0
        public RedirectToActionResult Edit(Designation employee)
        {
            Designation newEmployee = _empRepo.GetDesignation(employee.DesignationId);

            newEmployee.Date       = employee.Date;
            newEmployee.Time       = employee.Time;
            newEmployee.Day        = employee.Day;
            newEmployee.ClientName = employee.ClientName;


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