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)); }
public List <Destination> GetAll() { return(_destinationRepository.GetAll()); }
public async Task <IEnumerable <Destination> > Get() { return(await _repository.GetAll()); }