public ActionResult _UpdateStudent(Students s) { ViewBag.Message = ""; if (ModelState.IsValid) { bool update = BusinessRegistrar.UpdateStudent(s); if (update == true) { ViewBag.Message = s.FirstName + "'s information updated successfully"; } else { ViewBag.Message = "Error Occured. Try again."; } } return(Json(new { result = true, responseText = "update successfully" })); }