public ActionResult Create(StudentViewModel pro) { StudentClient CiC = new StudentClient(); CiC.Create(pro.student); return(RedirectToAction("Index")); }
public ActionResult Create([Bind(Include = "last_name,middle_name,first_name,gender")] StudentModel sTUDENT) { if (ModelState.IsValid) { client.Create(sTUDENT); return(RedirectToAction("Index")); } return(View(sTUDENT)); }