示例#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());
        }