public static IList <ScheduleAppointmentsObjData> GetAllRecords() { IList <ScheduleAppointmentsObjData> appoint = (IList <ScheduleAppointmentsObjData>)HttpContext.Current.Session["Appointments"]; ScheduleAppointmentsObjDatum obj = new ScheduleAppointmentsObjDatum(); if (appoint == null) { HttpContext.Current.Session["Appointments"] = appoint = obj.GetRecords().ToList(); } return(appoint); }
protected void Page_Load(object sender, EventArgs e) { this.Schedule1.AppointmentSettings.DataSource = data.GetRecords(); }