コード例 #1
0
        public async Task <ActionResult> EditGoodsModal(int goodsId)
        {
            var goods = await _goodsAppService.Get(new EntityDto <int>(goodsId));

            //GoodsDto cuGoods = AutoMapper.Mapper.Map<GoodsDto>(goods);
            var model = new EditGoodsModalViewModel
            {
                Goods = goods
            };

            return(View("_EditGoodsModal", model));
        }