示例#1
0
 // GET: InforMation/Edit/5
 public ActionResult Edit(int id)
 {
     Models.InfoDBHandle idb = new Models.InfoDBHandle();
     return(View(idb.GetInformation().Find(info => info.Id == id)));
 }
示例#2
0
 // GET: InforMation
 public ActionResult Index()
 {
     Models.InfoDBHandle dbhandle = new Models.InfoDBHandle();
     ModelState.Clear();
     return(View(dbhandle.GetInformation()));
 }