예제 #1
0
 public void DismissTag(Tag tag)
 {
     if (tag.Count > 1)
     {
         tag.Count--;
     }
     else
     {
         Entities.Tags.Remove(tag);
     }
 }
 private Tag TestTag(string t = "Test")
 {
     var tag = new Tag
                   {
                       Count = 1,
                       TagId = 1,
                       Text = t,
                       Presentations = new List<Presentation> { TestPresentation() },
                   };
     return tag;
 }