public ActionResult Create([Bind(Include = "Id,Name,Address,Contact")] Student student) { if (ModelState.IsValid) { int rowAffected = studentGateway.Add(student); if (rowAffected > 0) { return(RedirectToAction("Index")); } } return(View(student)); }