/// <summary> /// Initializes a new instance of the TagViewModel class. /// </summary> /// <param name="name"> /// </param> public TagViewModel(string name) { this.TagName = name; if (!string.IsNullOrWhiteSpace(this.TagName)) { this.Key = this.TagName.Trim().ToLowerInvariant().First().ToString(); } if (!char.IsLetter(this.Key[0])) { this.Key = "#"; } if (this.TagName == "more...") { this.IsLastItem = true; this.NavigationUrl = PageUrl.Tags(); } else { this.NavigationUrl = PageUrl.SearchMixesByTag(this.TagName); } }