public async Task <IList <FellowModel> > GetFellows(FellowQueryModel querymodel) { await GetAccess(); var response = await _restService.PostWithReadStream <FellowQueryModel, IList <FellowModel> >(_uacClient.Client, _configuaration.UACFellows, querymodel); return(response); }
public async Task <IList <FellowModel> > GetFellowsByUniversity(int universityId) { //if need access token ,if anonmous do not add this line await GetAccess(); var queryModel = new FellowQueryModel() { UniversityId = universityId }; var response = await _restService.PostWithReadStream <FellowQueryModel, IList <FellowModel> >(_uacClient.Client, _configuaration.UACFellows, queryModel); return(response); }