public ActionResult PostNewCourse(CoursesVM post) { using (var ctx = new CSEntities()) { ctx.AddNewCourse(post.Name, post.Description); return(RedirectToAction("Courses", "Home")); } }