Mhotivo.Controllers.StudentController.DetailsEdit C# (CSharp) Method

DetailsEdit() private method

private DetailsEdit ( StudentEditModel modelStudent ) : System.Web.Mvc.ActionResult
modelStudent Mhotivo.Models.StudentEditModel
return System.Web.Mvc.ActionResult
        public ActionResult DetailsEdit(StudentEditModel modelStudent)
        {
            var myStudent = _studentRepository.GetById(modelStudent.Id);
            modelStudent.Tutor1 = _parentRepository.GetById(modelStudent.Tutor1.Id);
            modelStudent.Tutor2 = _parentRepository.GetById(modelStudent.Tutor2.Id);
            var studentModel = Mapper.Map<StudentEditModel, Student>(modelStudent);
            _studentRepository.UpdateStudentFromStudentEditModel(studentModel, myStudent);
            const string title = "Estudiante Actualizado";
            var content = "El estudiante " + myStudent.FullName + " ha sido actualizado exitosamente.";
            _viewMessageLogic.SetNewMessage(title, content, ViewMessageType.InformationMessage);
            return RedirectToAction("Details/" + modelStudent.Id);
        }

Same methods

StudentController::DetailsEdit ( long id ) : System.Web.Mvc.ActionResult