using System; using System.Text; namespace bzit.bomg.Models { public class BookmarkItemViewModel { public string SiteName { get; set; } public string SiteAddress { get; set; } public string SiteDescription { get; set; } public string FaviconAddress { get; set; } public string TreeviewPath { get; set; } //public BookmarkItemModel ToModel() //{ // return new BookmarkItemModel() // { // SiteName = this.SiteName, // SiteAddress = this.SiteAddress, // SiteDescription = this.SiteDescription, // FaviconAddress = this.FaviconAddress, // TreeviewPath = this.TreeviewPath // }; //} public new string ToString() { StringBuilder sb = new StringBuilder(); sb.AppendLine("Name = "); sb.AppendLine(this.SiteName ?? string.Empty); sb.AppendLine(string.Empty); sb.AppendLine("Address = "); sb.AppendLine(this.SiteAddress ?? string.Empty); sb.AppendLine(string.Empty); sb.AppendLine("Description = "); sb.AppendLine(this.SiteDescription ?? string.Empty); sb.AppendLine(string.Empty); return sb.ToString(); } } }