コード例 #1
0
ファイル: GoodsManager.cs プロジェクト: Steveluy/eShopWeb
        public async Task EditGoods(Guid id, string name, string imgUrl, double price, double price_old)
        {
            using (IDAL.IGoodsService goodsService = new GoodsService())
            {
                var good = await goodsService.GetOneByIdAsync(id);

                good.Name      = name;
                good.ImgUrl    = imgUrl;
                good.Price     = price;
                good.Price_old = price_old;
                await goodsService.EditAsync(good);
            }
        }