Пример #1
0
 public ActionResult Edit(user u)
 {
     if (ModelState.IsValid)
     {
         db.Entry(u).State = EntityState.Modified;
         db.SaveChanges();
         TempData["Message"] = "recoed has been edit";
         return(RedirectToAction("Index"));
     }
     return(View(u));
 }