static void Main(string[] args)
        {
            PlutoDBContext plutoDBContext = new PlutoDBContext();
            ObjectResult <GetCourses_Result> GetCourses_Results = plutoDBContext.GetCourses();

            foreach (GetCourses_Result item in GetCourses_Results)
            {
                Console.WriteLine(item.Description);
            }
            Console.ReadLine();
        }
Exemple #2
0
        static void Main(string[] args)
        {
            var dbContext = new PlutoDBContext();

            var course = new Course();

            course.Level = Level.Beginner;

            dbContext.GetAuthorCourses(1);

            var courses = dbContext.GetCourses();

            foreach (var c in courses)
            {
                Console.WriteLine(c.Title);
            }


            Console.ReadKey();
        }