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