public ActionResult Updatedata(FormCollection frc) { Person p1 = new Person(); p1.Id = Convert.ToInt32(frc["Id"]); p1.Name = frc["Name"]; p1.Phone = Convert.ToInt64(frc["Phone"]); Person1Database database = new Person1Database(); if(database.Updatedata(p1)==1) { ViewBag.status = "update"; } return RedirectToAction("Load"); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)