public UserDto GetActiveUser()
        {
            var result = _client.Get <UserDto>("api/accounts/User");

            result.Token = Common.Common.Token;
            return(result);
        }
Example #2
0
        public List <CourseDto> GetCourseListByUser([Optional] string userId)
        {
            var result = _client.Get <List <CourseDto> >($"api/course/ListByUser/{userId}");

            if (result == null)
            {
                result = new List <CourseDto>();
            }

            return(result);
        }