Exemplo n.º 1
0
 public Boolean DeleteCorredor(Corredor corredor)
 {
     try
     {
         BaseDataAccess bda = new BaseDataAccess();
         bda.Delete(corredor);
         bda = null;
         return(true);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 2
0
 public Boolean DeleteCarrera(Club club)
 {
     try
     {
         BaseDataAccess bda = new BaseDataAccess();
         bda.Delete(club);
         bda = null;
         return(true);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 3
0
 public Boolean DeleteAutomovil(Automovil auto)
 {
     try
     {
         BaseDataAccess bda = new BaseDataAccess();
         bda.Delete(auto);
         bda = null;
         return(true);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 4
0
 public Boolean Delete(Object obj)
 {
     try
     {
         //BaseDataAccess mgr = new BaseDataAccess();
         using (mgr)
             mgr.Delete(obj);
         return(true);
     }
     catch
     {
         return(false);
     }
 }
Exemplo n.º 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;
     }
 }
Exemplo n.º 6
0
 public Boolean DeleteUsuario(Usuario user)
 {
     try
     {
         BaseDataAccess bda = new BaseDataAccess();
         bda.Delete(user);
         bda = null;
         return(true);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 7
0
 public Boolean DeleteEvento(Evento evento)
 {
     try
     {
         BaseDataAccess bda = new BaseDataAccess();
         bda.Delete(evento);
         bda = null;
         return(true);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }