public async Task <IEnumerable <Vacation> > GetAllVacations() { try { if (await _сonnectedStateService.IsServiceAvailable()) { await Synchronization(); } return(await _vacationRepository.GetAll()); } catch (VTSException e) { throw new BusinessException("Can't get vacations", e); } }
public IEnumerable <Vacation> GetAllVacations() { var requests = vacationRepository.GetAll(); return(requests); }