Beispiel #1
0
 public ActionResult Edit([Bind(Include = "PK_SEQ,LESSION_FK,NAME,DESCRIPTION")] GROUP_CONTENT gROUP_CONTENT)
 {
     if (ModelState.IsValid)
     {
         db.Entry(gROUP_CONTENT).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(gROUP_CONTENT));
 }
Beispiel #2
0
 public ActionResult Edit([Bind(Include = "PK_SEQ,USERNAME,TOKEN,STATUS")] USER uSER)
 {
     if (ModelState.IsValid)
     {
         db.Entry(uSER).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(uSER));
 }
Beispiel #3
0
 public ActionResult Edit([Bind(Include = "PK_SEQ,NAME,IMAGE,DESCRIPTION,MENU")] LESSION lESSION)
 {
     if (ModelState.IsValid)
     {
         db.Entry(lESSION).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(lESSION));
 }
Beispiel #4
0
 public ActionResult Edit([Bind(Include = "PK_SEQ,STT,CONTENT_TEXT,TYPE,GROUP_CONTENT_FK")] CONTENT cONTENT)
 {
     if (ModelState.IsValid)
     {
         db.Entry(cONTENT).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(cONTENT));
 }
Beispiel #5
0
 public ActionResult Edit([Bind(Include = "PK_SEQ,ANSWER_TEXT,ANSWER_USER_FK,QUESTION_FK,STATUS")] ANSWER aNSWER)
 {
     if (ModelState.IsValid)
     {
         db.Entry(aNSWER).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(aNSWER));
 }
Beispiel #6
0
 public ActionResult Edit([Bind(Include = "PK_SEQ,EN,VI,RELATE,ORDER,STATUS")] KEYWORD kEYWORD)
 {
     if (ModelState.IsValid)
     {
         db.Entry(kEYWORD).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(kEYWORD));
 }
Beispiel #7
0
 public ActionResult Edit([Bind(Include = "PK_SEQ,TAG_NAME")] TAG tAG)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tAG).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(tAG));
 }
Beispiel #8
0
 public ActionResult Edit([Bind(Include = "PK_SEQ,LESSON_FK,TAG_FK")] LESSION_TAG lESSION_TAG)
 {
     if (ModelState.IsValid)
     {
         db.Entry(lESSION_TAG).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(lESSION_TAG));
 }