Exemple #1
0
 public ActionResult Edit([Bind(Include = "ID,Status,Reark,FirstCode,SecondCode,ThirdCode,FourthCode,FifthCode,InfoValue")] Dictionary dictionary)
 {
     try
     {
         if (ModelState.IsValid)
         {
             db.Entry(dictionary).State = EntityState.Modified;
             db.SaveChanges();
             return(RedirectToAction("Index"));
         }
         return(View(dictionary));
     }
     catch (Exception ex) {
         Log.Error("Dinctionarys-Edit-Post", ex);
         return(View());
     }
 }
Exemple #2
0
 public ActionResult Edit([Bind(Include = "ID,CreatPersonID,CreatTime,BillMoney,BillTypeID,Status,Reark")] Bill bill)
 {
     if (ModelState.IsValid)
     {
         db.Entry(bill).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(bill));
 }