예제 #1
0
 public async Task <Schedule> GetOrCreateScheduleAsync(HeadHunterVacancy headHunterVacancy)
 {
     if (headHunterVacancy.Schedule == null)
     {
         return(null);
     }
     return(_storageBroker.SelectAllSchedules().FirstOrDefault(s =>
                                                               s.Code.ToLower().Equals(headHunterVacancy.Schedule.Id.ToLower())) ??
            await AddScheduleAsync(headHunterVacancy.Schedule));
 }
예제 #2
0
 public async Task <List <Schedule> > GetSchedulesAsync()
 {
     return(await _storageBroker.SelectAllSchedules().ToListAsync());
 }