public ActionResult PostNewTeacher(TeachersVM post) { using (var ctx = new CSEntities()) { ctx.AddNewTeacher(post.FName, post.LName, post.Phone, post.Email, post.DofB, post.Degree, post.Login, post.Password); return(RedirectToAction("Teachers", "Home")); } }