示例#1
0
 public ActionResult Create(Tag model)
 {
     model.ClickCount = 100;
     model.RefCount = 0;
     model.AddTime = DateTime.Now;
     bizTag.Insert(model);
     return RedirectToAction("Index");
 }
示例#2
0
        public ActionResult Edit(Tag model)
        {
            bizTag.Update(
                tag => tag.TagID == model.TagID,
                tag => new Tag { TagName = model.TagName, TargetType = model.TargetType }
            );

            return RedirectToAction("Index");
        }
示例#3
0
 partial void UpdateTag(Tag instance);
示例#4
0
 partial void DeleteTag(Tag instance);
示例#5
0
 partial void InsertTag(Tag instance);