public ActionResult Button(internviewapply ob) { if (ModelState.IsValid) { registrationEntities std = new registrationEntities(); std.sp_appintern(ob.id, ob.name, ob.place, ob.qulificaiton); ob.msg = "succesfully registered"; ModelState.Clear(); } else { ob.msg = "Please enter a valid Data"; } return(View(ob)); }