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);
     }
 }
Example #2
0
        public IEnumerable <Vacation> GetAllVacations()
        {
            var requests = vacationRepository.GetAll();

            return(requests);
        }