public List <CourseDTO> GetCourses() { var courses = new List <CourseDTO>(); foreach (var item in msc.GetCourses()) { var c = courseFactory.Create(); c.AppId = item.Id; c.Name = item.Name; courses.Add(c); } return(courses); }
public List <CourseDTO> GetCourses() { var courses = new List <CourseDTO>(); foreach (var item in msc.GetCourses()) { var c = courseFactory.Create(); c.AppId = item.Id; c.Name = item.Name; courses.Add(c); } return(courses); }