public ActionResult Create(Tag model) { model.ClickCount = 100; model.RefCount = 0; model.AddTime = DateTime.Now; bizTag.Insert(model); return RedirectToAction("Index"); }
public ActionResult Edit(Tag model) { bizTag.Update( tag => tag.TagID == model.TagID, tag => new Tag { TagName = model.TagName, TargetType = model.TargetType } ); return RedirectToAction("Index"); }
partial void UpdateTag(Tag instance);
partial void DeleteTag(Tag instance);
partial void InsertTag(Tag instance);