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); }
public ItemDetailController() { ItemInfoService = UContainer.Get <IItemInfo>(); }
public BuyController() { ItemInfoService = UContainer.Get <IItemInfo>(); }