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