Esempio n. 1
0
        public List <Item> GetItemsByPartOfBarcode(string barcode)
        {
            var input = new GetItemsByPartOfBarcodeInput
            {
                Barcode = barcode
            };

            using (var repo = new ItemRepository())
            {
                var app    = new ItemAppService(repo);
                var output = app.GetItemsByPartOfBarcode(input);
                return(output.Items.Select(i => i.ConvertToItem()).ToList());
            }
        }