Example #1
0
        public static List<Doctor> ListDoctor(int? orgId, int? siteId, int? doctorId, string firstName, string lastName, bool includeLegacy)
        {
            DataLayer dl = new DataLayer();
            List<Doctor> result = dl.ListDoctor(orgId, siteId, doctorId, firstName, lastName, includeLegacy);
            if (result != null)
            {
                foreach (Doctor cus in result)
                {
                    cus.ContactInformation = dl.ListContactInformation(cus.ContactInformationId).FirstOrDefault();

                }
            }
            return result;
        }