public JsonResult ListSave(List <DSTreeCEMap> dscemlist)
 {
     foreach (DSTreeCEMap dscem in dscemlist)
     {
         db.Entry(dscem).State = EntityState.Modified;
         db.SaveChanges();
     }
     return(Json("success"));
 }
 public ActionResult Edit([Bind(Include = "DSTreeGUID,ModGUID,ID,PID,FactorName,FactorNameCn,Operator,OperatorCn,FactorValue,FactorValueCn,Describe,DescribeCn,Result,ResultCn,CoverCount,ErroCount")] DSTree dSTree)
 {
     if (ModelState.IsValid)
     {
         db.Entry(dSTree).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(dSTree));
 }
 public ActionResult Edit([Bind(Include = "ModGUID,ModName,ModUid,ModPassword,ModDataBase,ModServer,ModDataSource,ModRemark")] DSTreeModel dSTreeModel)
 {
     if (ModelState.IsValid)
     {
         db.Entry(dSTreeModel).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(dSTreeModel));
 }