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); }
public ItemDTO GetItem(int id) { AItem item = _iq.GetItemById(id); return(ItemDTOFactory.Create(item)); }