Ejemplo n.º 1
0
        private static void NewMethod()
        {
            ItemInfo info = new ItemInfo();

            info.Item = new EMin.Model.Collection.Pro_Item()
            {
                Detail    = "aaaaaaaaaa",
                IsOnSale  = true,
                UnitPrice = 37.5M,
                Title     = "ababababa",
            };

            info.ItemSkuList = new List <EMin.Model.Collection.Pro_ItemSku>()
            {
                new EMin.Model.Collection.Pro_ItemSku()
                {
                    IsOnSale  = true,
                    Pattern   = "",
                    UnitPrice = 37.5M,
                }
            };

            info.ImageList = new List <EMin.Model.Collection.Pro_ItemImage>()
            {
                new EMin.Model.Collection.Pro_ItemImage()
                {
                    Url = "http://image.51daigou.com//ProductImage/2014/4/24/20140424175739.jpg"
                },
                new EMin.Model.Collection.Pro_ItemImage()
                {
                    Url = "http://image.51daigou.com//ProductImage/japanamazon/9d8e5446490f5e3601e3f66c0d87aeda.jpg"
                },
                new EMin.Model.Collection.Pro_ItemImage()
                {
                    Url = "http://image.51daigou.com//ProductImage/japanamazon/0ad7351e141f59d4f75507de68a535e9.jpg"
                }
            };



            UContainer.Get <IItemInfo>().SaveItem(info);
        }
Ejemplo n.º 2
0
 public ItemDetailController()
 {
     ItemInfoService = UContainer.Get <IItemInfo>();
 }
Ejemplo n.º 3
0
 public BuyController()
 {
     ItemInfoService = UContainer.Get <IItemInfo>();
 }