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