public int Eliminar(T entity) { String query = "delete from " + GetTableName() + " where id=" + entity.Id; int status = helper.Delete(query, null); return(status); }
public void EliminarDestinos(Vuelo vuelo) { string Consulta = "delete VUELO_DESTINO where vueloId = @P1"; SqlHelper Helper = new SqlHelper(); SqlParameter[] Params = new SqlParameter[1]; Params[0] = Helper.CrearParametro("@P1", vuelo.Id); Helper.Delete(Consulta, Params); }