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."); }
private Task <IEnumerable <VacationDto> > GetAllVacations() { var vacations = _vacationService.GetVacationAsync(); return(vacations); }