コード例 #1
0
        public static ProductPrepared1 Prepare(ProductDirty productDirty)
        {
            ProductPrepared1 newAd = new ProductPrepared1
            {
                Id       = productDirty.Id,
                Title    = productDirty.Title,
                Currency = ParcerCurrency.ParceCurrency(productDirty.PriceWithCurrency),
                Href     = productDirty.Href,
                Category = productDirty.Category,
                Price    = ParcerPrice.ParcePrice(productDirty.PriceWithCurrency)
            };

            return(newAd);
        }
コード例 #2
0
        public static AdPrepared1 Prepare(AdOlxDirty oldAd)
        {
            AdPrepared1 newAd = new AdPrepared1
            {
                Id       = oldAd.Id,
                Title    = oldAd.Title,
                Currency = ParcerCurrency.ParceCurrency(oldAd.PriceWithCurrency),
                Href     = oldAd.Href,
                Location = oldAd.Location,
                Price    = ParcerPrice.ParcePrice(oldAd.PriceWithCurrency)
            };

            return(newAd);
        }