public IEnumerable <LaboratoryTests> Get() { try { List <LaboratoryTests> ltList = new List <LaboratoryTests>(); LaboratoryTests lt = new LaboratoryTests(); ltList = lt.Read(); return(ltList); } catch (Exception e) { throw new Exception("בעיה בשליפת נתונים"); } }
public void Post(string idTest) { LaboratoryTests lt = new LaboratoryTests(); lt.ChangeActiveLabTest(idTest); }
public IEnumerable <LaboratoryTests> GetLabWithPatient(int NumPatient) { LaboratoryTests l = new LaboratoryTests(); return(l.GetLab(NumPatient)); }
public LaboratoryTests Get(int IdTest) { LaboratoryTests lt = new LaboratoryTests(); return(lt.Getlt(IdTest)); }
public void Put([FromBody] LaboratoryTests lt) { lt.PutLt(); }
public void Post([FromBody] LaboratoryTests lt) { lt.insertLt(); }