Beispiel #1
0
        // GET: /<controller>/
        public async Task <ActionResult> Index()
        {
            var _goodses = (await _goodsAppService.GetAll(new PagedResultRequestDto {
                MaxResultCount = MaxNum
            })).Items;
            //Paging not implemented yet
            //GoodsDto cuGoods = goods.FirstOrDefault();
            var model = new GoodsListViewModel
            {
                //Goods = cuGoods,
                Goodses = _goodses
            };

            return(View(model));
        }