Exemplo n.º 1
0
        public async Task <IEnumerable <CruiseLine> > Get()
        {
            var cl = await _cruiseRepository.GetAllItems();

            foreach (var item in cl)
            {
                item.Ships = await _shipRepository.GetAllItems(item.Nid);
            }
            return(cl);
        }
 public async Task <IEnumerable <Port> > Get()
 {
     return(await _portRepository.GetAllItems());
 }