コード例 #1
0
 public int InsertCourseExperiment(CourseExperiment courseExperiment)
 {
     using (var context = new HaermsEntities())
     {
         CourseExperiment c = context.CourseExperiment.Add(courseExperiment);
         context.SaveChanges();
         return(c.CourseExperimentId);
     }
 }
コード例 #2
0
 public Experiment Evaluate(Student student, CourseExperiment courseExperiment)
 {
     throw new System.NotImplementedException();
 }
コード例 #3
0
 public Experiment Get(Student student, CourseExperiment ce)
 {
     return(_experimentDal.Select(student.StudentId, ce.CourseExperimentId));
 }
コード例 #4
0
 public Experiment DownloadExperiment(Student student, CourseExperiment ce)
 {
     throw new System.NotImplementedException();
 }
コード例 #5
0
 public int Submit(CourseExperiment courseExperiment, Student whichStudent, Experiment exp)
 {
     exp.CourseExperimentId = courseExperiment.CourseExperimentId;
     exp.StudentId          = whichStudent.StudentId;
     return(_experimentDal.InsertExperiment(exp));
 }