Esempio n. 1
0
        private static ModelEntities.Deal ConvertDynamicToDeal(dynamic deal)
        {
            var d = new ModelEntities.Deal();

            d.Available              = int.Parse(deal.DealListAvailable);
            d.OriginalValue          = int.Parse(deal.DealListOriginalValue);
            d.DealValue              = int.Parse(deal.DealListCurrentValue);
            d.Saving                 = int.Parse(deal.DealListSaving);
            d.StartDateTime          = DateTime.Parse(deal.DealListStartDateTime);
            d.EndDateTime            = DateTime.Parse(deal.DealListEndDateTime);
            d.Description            = deal.DealListDescription;
            d.FinePrint              = deal.DealListFinePrint;
            d.RedemptionInstructions = deal.DealListRedemptionInstructions;
            return(d);
        }
Esempio n. 2
0
 private static ModelEntities.Deal ConvertDynamicToDeal(dynamic deal)
 {
     var d = new ModelEntities.Deal();
     d.Available = int.Parse(deal.DealListAvailable);
     d.OriginalValue = int.Parse(deal.DealListOriginalValue);
     d.DealValue = int.Parse(deal.DealListCurrentValue);
     d.Saving = int.Parse(deal.DealListSaving);
     d.StartDateTime = DateTime.Parse(deal.DealListStartDateTime);
     d.EndDateTime = DateTime.Parse(deal.DealListEndDateTime);
     d.Description = deal.DealListDescription;
     d.FinePrint = deal.DealListFinePrint;
     d.RedemptionInstructions = deal.DealListRedemptionInstructions;
     return d;
 }