示例#1
0
        public async Task <DataCollection <ProductDto> > GetAll(int page = 1, int take = 10, string ids = null)
        {
            IEnumerable <int> products = null;

            if (!string.IsNullOrEmpty(ids))
            {
                products = ids.Split(',').Select(x => Convert.ToInt32(x));
            }

            return(await _productQueryService.GetAllAsyc(page, take, products));
        }