Example #1
0
 public Boolean DeleteCorredor(Corredor corredor)
 {
     try
     {
         BaseDataAccess bda = new BaseDataAccess();
         bda.Delete(corredor);
         bda = null;
         return(true);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #2
0
 public Boolean DeleteCarrera(Club club)
 {
     try
     {
         BaseDataAccess bda = new BaseDataAccess();
         bda.Delete(club);
         bda = null;
         return(true);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #3
0
 public Boolean DeleteAutomovil(Automovil auto)
 {
     try
     {
         BaseDataAccess bda = new BaseDataAccess();
         bda.Delete(auto);
         bda = null;
         return(true);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #4
0
 public Boolean Delete(Object obj)
 {
     try
     {
         //BaseDataAccess mgr = new BaseDataAccess();
         using (mgr)
             mgr.Delete(obj);
         return(true);
     }
     catch
     {
         return(false);
     }
 }
Example #5
0
 public bool DeleteCategoria(Categoria cat, Usuario usuarioSistema)
 {
     try
     {
         BaseDataAccess bda = new BaseDataAccess();
         bda.Delete(cat);
         bda = null;
         return(true);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #6
0
 public Boolean DeleteUsuario(Usuario user)
 {
     try
     {
         BaseDataAccess bda = new BaseDataAccess();
         bda.Delete(user);
         bda = null;
         return(true);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #7
0
 public Boolean DeleteEvento(Evento evento)
 {
     try
     {
         BaseDataAccess bda = new BaseDataAccess();
         bda.Delete(evento);
         bda = null;
         return(true);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }