예제 #1
0
 public List <Area> GetAll()
 {
     try
     {
         using (BusinessArea negocio = new BusinessArea())
         {
             return(negocio.ObtenerAreas(true));
         }
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #2
0
 public List <Area> ObtenerAreas(bool insertarSeleccion)
 {
     try
     {
         using (BusinessArea negocio = new BusinessArea())
         {
             return(negocio.ObtenerAreas(insertarSeleccion));
         }
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }