public TagRecord CreateTag(string tagName) { var result = _tagRepository.Get(x => x.TagName == tagName); if (result == null) { result = new TagRecord { TagName = tagName }; _tagRepository.Create(result); } return result; }
private static TagEntry CreateTagEntry(TagRecord tagRecord) { return new TagEntry { Tag = tagRecord, IsChecked = false, }; }