public List <TestStatus> GetDataTestStatus() { SessionFactory SF = new SessionFactory(); SF.Init(); SF.OpenSession(); GenericDaoImpl <TestStatus, int> testStatusDao = new GenericDaoImpl <TestStatus, int>(SF.GetSession()); List <TestStatus> list = new List <TestStatus>(); list = testStatusDao.GetAll().ToList(); SF.CloseSession(); return(list); }
public List <Speciment> GetDataSpecimentName() { SessionFactory SF = new SessionFactory(); SF.Init(); SF.OpenSession(); GenericDaoImpl <Speciment, int> specimentNameDao = new GenericDaoImpl <Speciment, int>(SF.GetSession()); List <Speciment> list = new List <Speciment>(); list = specimentNameDao.GetAll().ToList(); SF.CloseSession(); return(list); }
public List <Doctor> GetDataAllDoctors() { SessionFactory SF = new SessionFactory(); SF.Init(); SF.OpenSession(); GenericDaoImpl <Doctor, int> doctorDao = new GenericDaoImpl <Doctor, int>(SF.GetSession()); List <Doctor> list = new List <Doctor>(); list = doctorDao.GetAll().ToList(); SF.CloseSession(); return(list); }
public List <Gender> GetDataGender() { SessionFactory SF = new SessionFactory(); SF.Init(); SF.OpenSession(); GenericDaoImpl <Gender, int> genderDao = new GenericDaoImpl <Gender, int>(SF.GetSession()); List <Gender> list = new List <Gender>(); list = genderDao.GetAll().ToList(); SF.CloseSession(); return(list); }