Ejemplo n.º 1
0
        public IActionResult CurriculaAdd(int courseId)
        {
            AddCurriculaViewModel acvm = new AddCurriculaViewModel()
            {
                CourseId = courseId
            };

            return(View(acvm));
        }
Ejemplo n.º 2
0
        public IActionResult CurriculaAdd(AddCurriculaViewModel acvm)
        {
            Curricula curr = new Curricula()
            {
                CourseId      = acvm.CourseId,
                CourseSession = acvm.CourseSession,
                Description   = acvm.Description
            };

            _currDAL.SaveCurricula(curr);

            return(RedirectToAction("Details", new { id = curr.CourseId }));
        }