예제 #1
0
        public async Task <IActionResult> Manage()
        {
            List <VacationViewModel> vacationCollection = (await vacationRepository.GetAllVacationSorted()).Select(v => new VacationViewModel(v)).ToList();

            return(View(new SearchViewModel()
            {
                Vacations = vacationCollection
            }));                                                                   // get vacations
        }