public ActionResult Edit([Bind(Include = "UserId,Username,Password,Fullname,Email,Avatar,isAdmin,Allowed")] Nguoidung nguoidung)
 {
     if (ModelState.IsValid)
     {
         db.Entry(nguoidung).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(nguoidung));
 }
 public ActionResult Edit([Bind(Include = "CategoryId,ParentId,ChildId,CategoryName,OrderNo,Status,UserId")] Danhmuc danhmuc)
 {
     if (ModelState.IsValid)
     {
         db.Entry(danhmuc).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(danhmuc));
 }
Exemple #3
0
 public ActionResult Edit([Bind(Include = "BlogId,Title,Brief,Content,Picture,CreateDate,CategoryId,CategoryChildId,Tags,ViewNo,Status,UserId,Seotitle")] Tintuc tintuc)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tintuc).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(tintuc));
 }