public int InsertCourseExperiment(CourseExperiment courseExperiment) { using (var context = new HaermsEntities()) { CourseExperiment c = context.CourseExperiment.Add(courseExperiment); context.SaveChanges(); return(c.CourseExperimentId); } }
public Experiment Evaluate(Student student, CourseExperiment courseExperiment) { throw new System.NotImplementedException(); }
public Experiment Get(Student student, CourseExperiment ce) { return(_experimentDal.Select(student.StudentId, ce.CourseExperimentId)); }
public Experiment DownloadExperiment(Student student, CourseExperiment ce) { throw new System.NotImplementedException(); }
public int Submit(CourseExperiment courseExperiment, Student whichStudent, Experiment exp) { exp.CourseExperimentId = courseExperiment.CourseExperimentId; exp.StudentId = whichStudent.StudentId; return(_experimentDal.InsertExperiment(exp)); }