Example #1
0
        public Task <IListDto <ProductDto> > GetAllProductAsync(ProductRequestAllDto request)
        {
            IListDto <ProductDto> result = new ListDto <ProductDto> {
                HasNext = false, Items = list
            };

            return(result.AsTask());
        }
Example #2
0
        public Task <IListDto <PurchaseOrderDto> > GetAllPurchaseOrderAsync(PurchaseOrderRequestAllDto request)
        {
            IListDto <PurchaseOrderDto> result = new ListDto <PurchaseOrderDto> {
                HasNext = false, Items = list
            };

            return(result.AsTask());
        }
Example #3
0
        public Task <IListDto <CustomerDto> > GetAllAsync(CustomerRequestAllDto request)
        {
            IListDto <CustomerDto> result = new ListDto <CustomerDto> {
                HasNext = false, Items = list
            };

            return(result.AsTask());
        }
Example #4
0
        public Task <IListDto <PurchaseOrderDto> > GetAllPurchaseOrdersAsync(PurchaseOrderRequestAllDto request)
        {
            var dtoList = _manager.List.Select(MapToPurchaseOrderDto);

            IListDto <PurchaseOrderDto> list = new ListDto <PurchaseOrderDto> {
                Items = dtoList.ToList(), HasNext = false
            };

            return(list.AsTask());
        }