예제 #1
0
        public List <Exam> GetExamInfoByCourseId(int id)
        {
            var exams           = _examRepository.GetAll();
            var examsByCourseId = exams.Where(x => x.CourseId == id).ToList();

            return(examsByCourseId);
        }
예제 #2
0
        public ActionResult Index()
        {
            //Accès à la base de données
            ExamRepository repoExam = new ExamRepository(new SqlConnection(@"Data Source = (LocalDb)\MSSQLLocalDB;  Integrated Security=SSPI;Connect Timeout=15;Encrypt=False;TrustServerCertificate=False; AttachDbFilename=" +
                                                                           Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) +
                                                                           @"\GeneCESI_BDD.mdf;"));
            List <Exam> exams = repoExam.GetAll().ToList();

            return(View(exams));
        }
예제 #3
0
        public List <Exam> GetAll()
        {
            List <Exam> examList = _examRepository.GetAll();

            return(examList);
        }
예제 #4
0
 public List <Exam> GetAllExams()
 {
     return(examRepository.GetAll().ToList());
     //return examRepository.GetAll().OrderBy(exam=>exam.fromDate).ToList();
 }
예제 #5
0
        public IEnumerable <Exam> GetAll()
        {
            var exams = ExamRepository.GetAll();

            return(exams);
        }
예제 #6
0
        public List <Exam> GetAllExams()
        {
            var exams = _examRepository.GetAll();

            return(exams);
        }
예제 #7
0
 public List <Exam> GetAllExam()
 {
     return(_examRepository.GetAll());
 }
예제 #8
0
        public int ExamCounter()
        {
            var noOfCount = _examRepository.GetAll().Count;

            return(noOfCount);
        }