public static ShippingMethod ToViewModel(this DataContracts.Quotes.ShipmentMethod shipmentMethod)
        {
            var shippingMethodModel = new ShippingMethod();

            shippingMethodModel.Handle = shipmentMethod.ShipmentMethodCode;
            shippingMethodModel.Price = shipmentMethod.Price;

            return shippingMethodModel;
        }
        public static ShippingMethod AsWebModel(this Data.Orders.Shipment shipment)
        {
            var ret = new ShippingMethod
            {
                Price = shipment.Sum,
                Title = shipment.ShipmentMethodCode,
                Handle = shipment.ShipmentMethodCode
            };

            return ret;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="ShippingMethodModel"/> class.
 /// </summary>
 /// <param name="method">The method.</param>
 /// <param name="cart">The cart.</param>
 public ShippingMethodModel(ShippingMethod method, ShoppingCart cart)
 {
     Method = method;
     Cart   = cart;
 }