Esempio n. 1
0
        public async Task <DetailCourseDataDto> GetDetailCourseData(string courseId)
        {
            var response = await _service.SendRequest <object, DetailCourseDataDto>(HttpMethod.Get,
                                                                                    $"{_coursesDetailUrl}-{courseId}",
                                                                                    null);

            return(response);
        }
        public async Task <IEnumerable <BasicCourseDataDTO> > GetCourses()
        {
            var response = await _service.SendRequest <object, IEnumerable <BasicCourseDataDTO> >(HttpMethod.Get,
                                                                                                  _coursesUrl,
                                                                                                  null);

            return(response);
        }