public async Task <List <SessionDTO> > GetAllSessions() { //SessionsLink.SetDay(1); var sessionsResponse = await _HttpClient.SendAsync(SessionsLink.BuildRequestMessage()); sessionsResponse.EnsureSuccessStatusCode(); var collection = await SessionsLink.ParseResponseAsync(sessionsResponse); return(SessionsLink.ParseSessions(collection)); }
public async Task <List <SessionDTO> > GetSessionsBySpeaker(int speakerid) { var sessionsResponse = await _HttpClient.SendAsync(SessionLink.BuildRequestMessage(new Dictionary <string, object> { { "speakerid", speakerid } })); sessionsResponse.EnsureSuccessStatusCode(); var collection = await SessionsLink.ParseResponseAsync(sessionsResponse); return(SessionsLink.ParseSessions(collection)); }