Example #1
0
        public async Task <IEnumerable <ItemDTO> > Get()
        {
            var items = await _itemData.GetAllItemsAsync();

            var itemsDTO = AutoMapper.Mapper.Map <List <ItemDTO> >(items);

            return(itemsDTO);
        }