static async Task Main(string[] args) { var client = new swaggerClient("https://localhost:44380", new HttpClient()); var data = await client.CourseAllAsync(); foreach (var item in data) { Console.WriteLine(item.Title); } }
static async Task Main(string[] args) { var httpclient = new swaggerClient("https://localhost:44324/", new HttpClient()); var AllCourse = await httpclient.CourseAllAsync(); foreach (var Course in AllCourse) { Console.WriteLine(Course.Title); } }