public void GetSneakerFromCatalogRecord(CatalogRecord record) { this.style = record.style; this.colorcode = record.colorcode; this.sku = record.sku.Trim(); this.title = record.title; //TextInfo ti = new CultureInfo("en-us", false).TextInfo; //this.title = ti.ToTitleCase(record.title.ToLower()); //перевожу название В Верхние Регистр Первая Буква Слова Для Яндекс Маркета this.color = record.color; this.brand = record.brand; this.collection = record.collection; this.type = record.type; this.height = record.height; this.destination = record.destination; this.description = record.description; this.category = record.category; this.sex = record.sex; this.link = record.link; double price; double.TryParse(record.price, out price); this.price = price; double.TryParse(record.oldPrice, out price); this.oldPrice = price; this.images = record.images.Split('|').ToList(); //this.price = Int32.Parse(record.streetbeat); }
public Sneaker(CatalogRecord record) { Initialization(); GetSneakerFromCatalogRecord(record); }