Пример #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));
 }