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