示例#1
0
 public void AddTag(TagAddViewModel tagAddViewModel)
 {
     var tag = new Tag {Name = tagAddViewModel.Name};
     tagRepository.Create(tag);
 }
示例#2
0
 public TagViewModel(Tag tag)
 {
     Id = tag.Id;
     Name = tag.Name;
     Count = tag.Count;
 }
示例#3
0
 public TagSimpleViewModel(Tag tag)
 {
     Id = tag.Id;
     Name = tag.Name;
 }