示例#1
0
 public void AddTag(TagAddViewModel tagAddViewModel)
 {
     var tag = new Tag {Name = tagAddViewModel.Name};
     tagRepository.Create(tag);
 }
示例#2
0
 public ActionResult Create(TagAddViewModel tagAddViewModel)
 {
     tagService.AddTag(tagAddViewModel);
     return RedirectToAction("List");
 }