예제 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         InstructorService instructorService = new InstructorService();
         repeaterInstructor.DataSource = instructorService.GetAllInstructor();
         repeaterInstructor.DataBind();
     }
 }
예제 #2
0
        public static List <Instructor> GetAllInstructors()
        {
            InstructorService instructorService = new InstructorService();

            return(instructorService.GetAllInstructor());
        }