Exemplo n.º 1
0
 public string DeleteViajesUser(int id)
 {
     try
     {
         if (Check())
         {
             return(db.DeleteUserViajes(id));
         }
     }
     catch (UnCheckException ex)
     {
         throw ex;
     }
     catch (FindException)
     {
         throw new FindException();
     }
     catch (GenericException ex)
     {
         throw ex;
     }
     return("No tienes permisos de administrador");
 }