public ActionResult TOEdit(PDA p) { PDA pp = PDA.GetEntityByID(p.ID); pp.SupplierId = p.SupplierId; int rtn = pp.UpdateByID(); return(Content(rtn > 0 ? "ok" : "修改出错了!!")); }
public ActionResult Edit(int ID) { PDA P = PDA.GetEntityByID(ID); return(View(P)); }