public object Create()
        {
            var teacher = new Teacher
                 {
                     Name = "Oren Eini"
                 };
            Session.Store(teacher);

             var course = new Course
                 {
                     Name = "RavenDB",
                     TeacherId = teacher.Id
                 };
            Session.Store(course);

             for (int i = 0; i < 10; i++)
             {
                 var student = new Student
                     {
                         FirstName = "Student",
                         LastName = i.ToString(),
                         CourseIds = new[] {course.Id}
                     };
                     Session.Store(student);
             }
             return Json("OK");
        }
        public object New(string firstName, string lastName, string email)
        {
            var student = new Student
                               {
                                   FirstName = firstName,
                                   LastName = lastName,
                                   Email = email
                               };

             Session.Store(student);

             return Json(student.Id);
        }