Example #1
0
 public ActionResult Edit([Bind(Include = "id,busId,code,date,url,postData,postType,returnData,result,description,mark")] Logdetail logdetail)
 {
     if (ModelState.IsValid)
     {
         db.Entry(logdetail).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(logdetail));
 }
Example #2
0
 public ActionResult Edit([Bind(Include = "ID,CODE,NAME,TYPE,ISAUTO,STARTDATE,ENDDATE,VALUE,FREQUENCY")] Models.Business business)
 {
     if (ModelState.IsValid)
     {
         db.Entry(business).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(business));
 }