예제 #1
0
        private static void RetrievesVacationsFromTheServerAndStoresInTheDb()
        {
            _vacations = _serviceApi.GetVacationAsync().Result.ToList();

            ShowVacationsDto(_vacations, "List of vacations Requests from the server.");

            CreateListOfVacationsInSql(_vacations);

            _vacations = _serviceSql.GetVacation();

            ShowVacationsDto(_vacations, "List of vacations from the db after adding from the server.");
        }
예제 #2
0
        private Task <IEnumerable <VacationDto> > GetAllVacations()
        {
            var vacations = _vacationService.GetVacationAsync();

            return(vacations);
        }