예제 #1
0
        public ActionResult GetWeekDays(string searchTerm, int pageSize, int pageNum)
        {
            //Get the paged results and the total count of the results for this query.
            WeekDayRepository  ar        = new WeekDayRepository();
            List <WeekDayList> attendees = ar.GetWeekDays(searchTerm, pageSize, pageNum);
            int attendeeCount            = ar.GetAttendeesCount(searchTerm, pageSize, pageNum);

            //Translate the attendees into a format the select2 dropdown expects
            Select2PagedResult pagedAttendees = WeekDaysToSelect2Format(attendees, attendeeCount);

            //Return the data as a jsonp result
            return(new JsonpResult
            {
                Data = pagedAttendees,
                JsonRequestBehavior = JsonRequestBehavior.AllowGet
            });
        }
예제 #2
0
        public EntityService()
        {
            weekDayRepository     = new WeekDayRepository();
            roomLectureRepository = new RoomLectureRepository();
            roomRepository        = new RoomRepository();

            lectureRepository         = new LectureRepository();
            parentRepository          = new ParentRepository();
            postponedLessonRepository = new PostponedLessonRepository();
            programRepository         = new ProgramRepository();
            recievedPaymentRepository = new RecievedPaymentRepository();

            studentRepository        = new StudentRepository();
            teacherLectureRepository = new TeacherLectureRepository();
            teacherPaymentRepository = new TeacherPaymentRepository();
            teacherRepository        = new TeacherRepository();
            userRepository           = new UserRepository();
        }
예제 #3
0
 public UnitOfWork(SchedulingDbContext context)
 {
     this.context           = context;
     ScheduleConfigurations = new ScheduleConfigurationRepository(context);
     Types             = new TypeRepository(context);
     Rooms             = new RoomRepository(context);
     Courses           = new CourseRepository(context);
     Sections          = new SectionRepository(context);
     AcademicSemesters = new AcademicSemesterRepository(context);
     WeekDays          = new WeekDayRepository(context);
     Instructors       = new InstructorRepository(context);
     Curriculums       = new CurriculumRepository(context);
     CourseOfferings   = new CourseOfferingRepository(context);
     CourseOfferingInstructorAssignments = new InstructorAssignmentRepository(context);
     Departments     = new DepartmentRepository(context);
     Colleges        = new CollegeRepository(context);
     Buildings       = new BuildingRepository(context);
     LabTypes        = new LabTypeRepository(context);
     ScheduleEntries = new ScheduleEntryRepository(context);
     Schedules       = new ScheduleRepository(context);
 }