public async Task <IList <Domain.Schedule.Models.Schedule> > GetAll(bool isSession) { try { var scheduleString = await client.GetAllSchedules(isSession); return(converter.ParseSchedules(scheduleString)); } catch (Exception e) { Console.WriteLine(e); return(Array.Empty <Domain.Schedule.Models.Schedule>()); } }
public async Task <IList <Schedule> > GetAll(bool isSession) { this.logger.LogDebug($"GetAll isSession = {isSession}"); try { var scheduleString = await client.GetAllSchedules(isSession); return(converter.ParseSchedules(scheduleString)); } catch (Exception e) { this.logger.LogError(e, "GetAll"); return(Array.Empty <Schedule>()); } }