public List <Appointment> GetAppointments()
        {
            var uDal   = new AppointmentDAL(_dbc);
            var result = uDal.GetAppointments().Result;

            return(result);
        }
Example #2
0
        public static string[] GetAppointments()
        {
            DataTable dTable = null;

            string[] objAppointmentList = null;
            dTable = AppointmentDAL.GetAppointments();

            if (dTable.Rows.Count > 0)
            {
                objAppointmentList = dTable.AsEnumerable().Select(row => row.Field <string>("APPOINTMENTNO")).ToArray();
            }
            return(objAppointmentList);
        }
 /// <see cref="AppointmentDAL.GetAppointments"/>
 public List <Appointment> GetAppointments()
 {
     return(AppointmentDAL.GetAppointments());
 }