// Update a record public ActionResult Edit(int id) { ContactBAL db = new ContactBAL(); var record = db.Details(id); return(View(record)); }
// View details of a single record. public ActionResult Details(int id) { ContactBAL db = new ContactBAL(); var currentRecord = db.Details(id); return(View(currentRecord)); }