public PriceHistoryViewModel(VendorGameHistory history)
 {
     Platform    = new PlatformViewModel(history.GamePlatform.Platform, history.GamePlatform.ReleaseDate.Value);
     Vendor      = new VendorViewModel(history.Vendor);
     Price       = history.Price;
     SalePrice   = history.SalePrice;
     CreatedDate = history.CreatedDate;
     PageURL     = history.PageURL;
 }
Exemple #2
0
 public VendorGameSettingViewModel(VendorGameSetting setting)
 {
     VendorGameSettingID = setting.VendorGameSettingsID;
     GamePlatformID      = setting.GamePlatformID.Value;
     VendorID            = setting.VendorID.Value;
     PageURL             = setting.PageURL;
     Automated           = setting.Automated.HasValue ? setting.Automated.Value : false;
     ElementType         = setting.ElementType;
     ElementValue        = setting.ElementValue;
     CreatedBy           = setting.CreatedBy;
     CreatedDate         = setting.CreatedDate;
     ModifiedBy          = setting.ModifiedBy;
     ModifiedDate        = setting.ModifiedDate;
     Platform            = new PlatformViewModel(setting.GamePlatform.Platform);
 }