public InstructorViewModel[] GetInstructorsVms()
        {
            var instructors = new[] {
                new InstructorViewModel {Name= "Rubeus Hagrid", Email= "*****@*****.**", RoomNumber = 1001},
                new InstructorViewModel {Name="Severus Snape", Email= "*****@*****.**", RoomNumber = 105},
                new InstructorViewModel {Name="Minerva McGonagall", Email= "*****@*****.**", RoomNumber = 102}
            };

            return instructors;
        }
        public CourseViewModel[] GetCoursesVms()
        {
            var courses = new[] {
                new CourseViewModel {Number = "CREA101", Name="Care of magical creatures", Instructor = "Rubeus Hagrid"},
                new CourseViewModel {Number = "DARK502", Name="Defence against the dark arts", Instructor = "Severus Snape"},
                new CourseViewModel {Number = "TRAN201", Name="Transfiguration", Instructor = "Minerva McGonagall"}
            };

            return courses;
        }
 public string GetSerializedInstructors()
 {
     var instructors = new[]
         {
             new InstructorVm {Name = "Rubeus Hagrid", Email = "*****@*****.**", RoomNumber = 1001},
             new InstructorVm {Name = "Severus Snape", Email = "*****@*****.**", RoomNumber = 105},
             new InstructorVm {Name = "Minerva McGonagall", Email = "*****@*****.**", RoomNumber = 102},
         };
     var settings = new JsonSerializerSettings { ContractResolver = new CamelCasePropertyNamesContractResolver() };
     var serializedInstructors = JsonConvert.SerializeObject(instructors, Formatting.None, settings);
     return serializedInstructors;
 }
 public string GetSerializedCourses()
 {
     var courses = new[]
         {
             new CourseVm {Number = "CREA101", Name = "Care of Magical Creatures", Instructor = "Rubeus Hagrid"},
             new CourseVm {Number = "DARK502", Name = "Defence Against the Dark Arts", Instructor = "Severus Snape"},
             new CourseVm {Number = "TRAN201", Name = "Transfiguration", Instructor = "Minerva McGonagall"},
         };
     var settings = new JsonSerializerSettings { ContractResolver = new CamelCasePropertyNamesContractResolver() };
     var serializeCourses = JsonConvert.SerializeObject(courses, Formatting.None, settings);
     return serializeCourses;
 }