Пример #1
0
        public IEnumerable <Item> SearchListItems(IEnumerable <Item> list, string barcode, string status, string itemType, string consignorName,
                                                  DateTime?listedDate)
        {
            var input = new SearchListItemsInput
            {
                Barcode       = barcode,
                Status        = status,
                ItemType      = itemType,
                ConsignorName = consignorName,
                ListedDate    = listedDate
            };

            using (var repo = new ItemRepository())
            {
                var app    = new ItemAppService(repo);
                var output = app.SearchListItems(input);

                return(output.Items.Select(i => i.ConvertToItem()).ToList());
            }
        }