namespace RMuseum.Models.Ganjoor.ViewModels { /// /// A GanjoorCat whose CatType is Book - a minimal view model for listing/searching books /// (e.g. the home page's book search box), not the full category details /// public class GanjoorBookViewModel { /// /// id (GanjoorCat.Id) /// public int Id { get; set; } /// /// book name (GanjoorCat.Title) /// public string Name { get; set; } /// /// full url, sample: /hafez/ghazal /// public string FullUrl { get; set; } /// /// poet id (GanjoorCat.PoetId) /// public int PoetId { get; set; } /// /// poet short name (GanjoorPoet.Nickname) /// public string PoetName { get; set; } public override string ToString() { return Name; } } }