Пример #1
0
        public async Task <IPagingResult <ListProductResponse> > List([FromQuery] PagingCriteriaRequest criteria)
        {
            var result = await FacadeService.ProductService.List(criteria.ToPagingService());

            result.AddLinkSelf("ProductList");
            result.AddLinkItem("ProductGetById");
            return(result);
        }
Пример #2
0
        public async Task <IPagingResult <GetByCustomerResponse> > GetBy([FromQuery] GetByCustomerRequest filter, [FromQuery] PagingCriteriaRequest clause)
        {
            var result = await FacadeService.CustomerService.GetBy(filter, clause.ToPagingService());

            result.AddLinkSelf("CustomerGetBy");
            result.AddLinkItem("CustomerGetById");
            return(result);
        }