示例#1
0
 public List <Patient> GetAllPatients(Func <Patient, bool> predicate = null)
 {
     try
     {
         List <Patient> res = IDalService.GetAllPatients();
         return(res);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
示例#2
0
        public List <string> GetAllPatientsId()
        {
            try
            {
                var ids = (from item in IDalService.GetAllPatients()
                           select item.PatientId).ToList();

                return(ids);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }