//public ActionResult EditData(string id) //{ // DataAccessLayer.DBdata obdb = new DataAccessLayer.DBdata(); // return View(obdb.SelectDatabyID(id)); //} public ActionResult EditData(int id = 0) { TempData["id"] = id; //return RedirectToAction("EditData_Details"); DataAccessLayer.DBdata obdb = new DataAccessLayer.DBdata(); return(View(obdb.SelectDatabyID(Convert.ToString(TempData["id"])))); }
public ActionResult EditData(string id) { DataAccessLayer.DBdata obdb = new DataAccessLayer.DBdata(); return(View(obdb.SelectDatabyID(id))); }