コード例 #1
0
        public IEnumerable <ItemDTO> GetItems()
        {
            IEnumerable <AItem> items = _iq.GetItems();
            List <ItemDTO>      dtos  = new List <ItemDTO>();

            foreach (var item in items)
            {
                dtos.Add(ItemDTOFactory.Create(item));
            }
            return(dtos);
        }
コード例 #2
0
        public ItemDTO GetItem(int id)
        {
            AItem item = _iq.GetItemById(id);

            return(ItemDTOFactory.Create(item));
        }