public ActionResult PostNewStudent(StudentsVM post) { using (var ctx = new CSEntities()) { ctx.AddNewStudent(post.FName, post.LName, post.Phone, post.Email, post.DofB, post.Spec, post.Login, post.Password); return(RedirectToAction("Students", "Home")); } }