Esempio n. 1
0
        public IEnumerable <Item> SearchAllItems(string barcode, string status, string itemType, string consignorName, DateTime?listedDate)
        {
            var input = new SearchAllItemsInput
            {
                Barcode       = barcode,
                Status        = status,
                ItemType      = itemType,
                ConsignorName = consignorName,
                ListedDate    = listedDate
            };

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

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