Exemple #1
0
        public IActionResult Index()
        {
            IndexViewModel model = new IndexViewModel();

            var l = _flightRep.GetGroupByFromCode();

            model.Destinations = _destinationRep.GetAll().ToArray();
            model.Deals        = Utils.loadData <Deal[]>("data/deals.json").Take(4).ToArray();
            return(View(model));
        }
Exemple #2
0
 public List <Destination> GetAll()
 {
     return(_destinationRepository.GetAll());
 }
Exemple #3
0
 public async Task <IEnumerable <Destination> > Get()
 {
     return(await _repository.GetAll());
 }