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