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);
        }
Esempio n. 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     this.Schedule1.AppointmentSettings.DataSource = data.GetRecords();
 }