public LocationViewModel(StyleLocationDTO location)
 {
     Id        = location.Id;
     Isle      = location.Isle;
     Section   = location.Section;
     Shelf     = location.Shelf;
     IsDefault = location.IsDefault;
 }
        public ReturnQuantityItemViewModel(ListingOrderDTO item)
        {
            ItemOrderId = item.ItemOrderId;
            var image = item.ItemPicture;

            if (String.IsNullOrEmpty(image))
            {
                image = item.StyleImage;
            }
            PictureUrl = ImageHelper.GetFirstOrDefaultPicture(image);

            Market        = (MarketType)item.Market;
            MarketplaceId = item.MarketplaceId;

            ASIN        = item.ASIN;
            SKU         = item.SKU;
            ParentASIN  = item.ParentASIN;
            StyleString = item.StyleID;
            ItemTitle   = item.Title;

            Quantity        = item.QuantityOrdered;
            Size            = item.Size;
            DefaultLocation = item.Locations != null && item.Locations.Any() ? item.Locations.OrderByDescending(l => l.IsDefault).First() : null;

            PriceCurrency    = PriceHelper.FormatCurrency(item.ItemPriceCurrency);
            ItemPrice        = item.ItemPrice;
            ItemTax          = item.ItemTax ?? 0;
            ItemPriceInUSD   = PriceHelper.RougeConvertToUSD(PriceCurrency, item.ItemPrice);
            ShippingPrice    = item.ShippingPrice;
            ShippingDiscount = item.ShippingDiscount ?? 0;
            ShippingTax      = item.ShippingTax ?? 0;

            Weight = item.Weight ?? 0;

            StyleId     = item.StyleId;
            StyleItemId = item.StyleItemId;

            InputQuantity        = Quantity;
            InputDamagedQuantity = 0;
        }