示例#1
0
 public CountryShortViewModel(ICountry country)
 {
     CountryId          = country.CountryId;
     Name               = country.Name;
     UrlName            = country.UrlName;
     Category           = TourTypesConverter.ConvertToString(country.Category);
     ThreeStarsPrice    = country.ThreeStarsPrice;
     FourStarsPrice     = country.FourStarsPrice;
     FiveStarsPrice     = country.FiveStarsPrice;
     Description        = country.Description;
     Title              = country.Title;
     OldImageCollection = country.ImageIdCollection.ToList();
 }
示例#2
0
 public TourViewModel(ITour tour)
 {
     TourId             = tour.TourId;
     Name               = tour.Name;
     UrlName            = tour.UrlName;
     City               = tour.City;
     Category           = TourTypesConverter.ConvertToString(tour.Category);
     Price              = tour.Price;
     Stars              = tour.Stars;
     Description        = tour.Description;
     Country            = tour.Country;
     Nights             = tour.Nights;
     IsFlightIncluded   = tour.IsFlightIncluded;
     NewImageCollection = new List <string>();
     OldImageCollection = tour.ImageIdCollection.ToList();
 }
 public CountryViewModel(ICountry country)
 {
     CountryId          = country.CountryId;
     Name               = country.Name;
     UrlName            = country.UrlName;
     Category           = TourTypesConverter.ConvertToString(country.Category);
     ThreeStarsPrice    = country.ThreeStarsPrice;
     FourStarsPrice     = country.FourStarsPrice;
     FiveStarsPrice     = country.FiveStarsPrice;
     Description        = country.Description;
     PageContent        = country.PageContent;
     PageContentBottom  = country.PageContentBottom;
     Title              = country.Title;
     MetaDescription    = country.MetaDescription;
     MetaKeywords       = country.MetaKeywords;
     PageHeader         = country.PageHeader;
     NewImageCollection = new List <string>();
     OldImageCollection = country.ImageIdCollection.ToList();
 }