public static FarmacoConnection GetInstance() { if (farmacoConnection == null) { farmacoConnection = new FarmacoConnection(); } return(farmacoConnection); }
public List <Farmaco> ListFarmacos() { try { return(FarmacoConnection.GetInstance().ListFarmacos()); } catch (Exception e) { throw e; } }
public bool InsertFarmaco(Farmaco objFarmaco) { try { return(FarmacoConnection.GetInstance().InsertFarmaco(objFarmaco)); } catch (Exception e) { throw e; } }