Exemplo n.º 1
0
        public ActionResult PostNewCourse(CoursesVM post)
        {
            using (var ctx = new CSEntities())
            {
                ctx.AddNewCourse(post.Name, post.Description);

                return(RedirectToAction("Courses", "Home"));
            }
        }