public eClinicalExamination getOneClinicalExamination(int id) { var result = cedal.getOneClinicalExamination(id); eClinicalExamination e = new eClinicalExamination(); e.ClinicalExaminationId = result.ClinicalExaminationTypeID; e.Type = result.Type; e.Description = result.Description; return(e); }
public List <eClinicalExamination> getAllClinicalExamination() { List <eClinicalExamination> ls = new List <eClinicalExamination>(); foreach (ClinicalExamination record in cedal.getAllClinicalExamination()) { eClinicalExamination temp = new eClinicalExamination(); temp.ClinicalExaminationId = record.ClinicalExaminationTypeID; temp.Description = record.Description; temp.Type = record.Type; ls.Add(temp); } return(ls); }
public bool updateClinicalExamination(eClinicalExamination e) { try { ClinicalExamination temp = new ClinicalExamination(); temp.ClinicalExaminationTypeID = e.ClinicalExaminationId; temp.Description = e.Description; temp.Type = e.Type; cedal.updateClinicalExamination(temp); return(true); } catch { return(false); } }