public async Task RunYoFreeSample(string connectionString) { YoFreeSample yoFreeSample = new YoFreeSample(); List <string> udemyLinkList = yoFreeSample.CreateUdemyLinkList(); Udemy udemy = new Udemy(); List <Course> courseList = await udemy.CreateCourseList(udemyLinkList); Data data = new Data(connectionString); data.InsertCourse(courseList); }
public async Task RunCourseMania(string connectionString) { List <string> udemyLinkList = new List <string>(); CourseMania courseMania = new CourseMania(); udemyLinkList.AddRange(await courseMania.CreateUdemyLinkList()); Udemy udemy = new Udemy(); List <Course> courseList = await udemy.CreateCourseList(udemyLinkList); Data data = new Data(connectionString); data.InsertCourse(courseList); }