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