Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }