Пример #1
0
 public int CadastrarMedicamento(CadastrarMedicamentoModel model)
 {
     try
     {
         MedicamentoDAL objMedicamentoDAL = new MedicamentoDAL();
         return(objMedicamentoDAL.CadastrarMedicamento(model));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Пример #2
0
 public EditarMedicamentoModel ConsultarMedicamentoID(int idMedicamento)
 {
     try
     {
         MedicamentoDAL objMedicamentoDAL = new MedicamentoDAL();
         return(objMedicamentoDAL.ConsultarMedicamentoID(idMedicamento));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Пример #3
0
 public int ExcluirMedicamento(int idMedicamento)
 {
     try
     {
         MedicamentoDAL objMedicamentoDAL = new MedicamentoDAL();
         return(objMedicamentoDAL.ExcluirMedicamento(idMedicamento));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Пример #4
0
 public List <ListaConsultaMedicamentoModel> ConsultarMedicamento(int sort, string psqNomeGenerico, string psqNomeFabrica, string psqFabricante)
 {
     try
     {
         MedicamentoDAL objMedicamentoDAL = new MedicamentoDAL();
         return(objMedicamentoDAL.ConsultarMedicamento(sort, psqNomeGenerico, psqNomeFabrica, psqFabricante));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }