public ActionResult Delete(MainContentListTagBehavior tagBehavior)
 {
     //tagBehaviorSer.DeleteEntity(tagBehavior);
     tagBehavior.IsDelete = 1;
     tagBehaviorSer.UpdateEntity(tagBehavior);
     tagBehaviorSer.SaveChange();
     return(RedirectToAction("Index"));
 }
 public ActionResult Create(MainContentListTagBehavior tagBehavior)
 {
     tagBehavior.CreateTime = DateTime.Now;
     tagBehavior.IsDelete   = 0;
     tagBehavior.IsUpadte   = 1;
     tagBehaviorSer.AddEntity(tagBehavior);
     tagBehaviorSer.SaveChange();
     return(RedirectToAction("Index"));
 }
 public ActionResult Edit(MainContentListTagBehavior tagBehavior)
 {
     tagBehaviorSer.UpdateEntity(tagBehavior);
     tagBehaviorSer.SaveChange();
     return(RedirectToAction("Index"));
 }