public ActionResult Add(AcademicYearDetailsRegisterModel academicYearDetailsModel)
        {
            var academicYearDetails = new AcademicYearDetail
            {
                TeacherStartDate = ParseToHonduranDateTime.Parse(academicYearDetailsModel.TeacherStartDate),
                TeacherEndDate = ParseToHonduranDateTime.Parse(academicYearDetailsModel.TeacherEndDate),
                Schedule = ParseToHonduranDateTime.Parse(academicYearDetailsModel.Schedule),
                Room = academicYearDetailsModel.Room,
                Course = _courseRepository.GetById(academicYearDetailsModel.Course.Id),
                Teacher = _teacherRepository.GetById(academicYearDetailsModel.Teacher.Id),
                AcademicYear = _academicYearRepository.GetById(academicYearDetailsModel.AcademicYearId)
            };

            _academicYearDetailsRepository.Create(academicYearDetails);
            const string title = "Detalles de Año Académico Agregado";
            const string content = "El detalle del año académico ha sido agregado exitosamente.";
            _viewMessageLogic.SetNewMessage(title, content, ViewMessageType.SuccessMessage);
            return Redirect(string.Format("~/AcademicYearDetails/Index/{0}", academicYearDetailsModel.AcademicYearId));
        }
        public ActionResult Add(AcademicYearDetailsRegisterModel academicYearDetailsModel)
        {
            var academicYearDetails = new AcademicYearDetail
            {
                TeacherStartDate = ParseToHonduranDateTime.Parse(academicYearDetailsModel.TeacherStartDate),
                TeacherEndDate   = ParseToHonduranDateTime.Parse(academicYearDetailsModel.TeacherEndDate),
                Schedule         = ParseToHonduranDateTime.Parse(academicYearDetailsModel.Schedule),
                Room             = academicYearDetailsModel.Room,
                Course           = _courseRepository.GetById(academicYearDetailsModel.Course.Id),
                Teacher          = _teacherRepository.GetById(academicYearDetailsModel.Teacher.Id),
                AcademicYear     = _academicYearRepository.GetById(academicYearDetailsModel.AcademicYearId)
            };


            _academicYearDetailsRepository.Create(academicYearDetails);
            const string title   = "Detalles de Año Académico Agregado";
            const string content = "El detalle del año académico ha sido agregado exitosamente.";

            _viewMessageLogic.SetNewMessage(title, content, ViewMessageType.SuccessMessage);
            return(Redirect(string.Format("~/AcademicYearDetails/Index/{0}", academicYearDetailsModel.AcademicYearId)));
        }