Ejemplo n.º 1
0
 public Sla ObtenerSlaById(int idSla)
 {
     try
     {
         using (BusinessSla negocio = new BusinessSla())
         {
             return(negocio.ObtenerSla(idSla));
         }
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Ejemplo n.º 2
0
 public void Guardar(Sla sla)
 {
     try
     {
         using (BusinessSla negocio = new BusinessSla())
         {
             negocio.Guardar(sla);
         }
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Ejemplo n.º 3
0
 public List <Sla> ObtenerSla(bool insertarSeleccion)
 {
     try
     {
         using (BusinessSla negocio = new BusinessSla())
         {
             return(negocio.ObtenerSla(insertarSeleccion));
         }
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }