public int AtualizarSessao(MLTAB_AGENDA objml) { var objDLTAB_AGENDA = new DLTAB_AGENDA(); try { return(objDLTAB_AGENDA.Atualizar(objDLTAB_AGENDA.ConsultarIDAGE(objml))); } catch (Exception) { throw; } finally { objDLTAB_AGENDA = null; } }
public int ConsultaIDAGE(MLTAB_AGENDA objml) { var objAGE = new DLTAB_AGENDA(); int ID_AGE; try { return(ID_AGE = objAGE.ConsultarIDAGE(objml)); } catch (Exception) { throw; } finally { objAGE = null; } }
public bool Excluir(MLTAB_AGENDA objML) { var objDLFORMA = new DLTAB_FORMPAG(); var objAGE = new DLTAB_AGENDA(); try { int ID_AGE = objAGE.ConsultarIDAGE(objML); objDLFORMA.Excluir(ID_AGE); objAGE.ExcluirPorIDAGE(ID_AGE); return(true); } catch (Exception) { return(false); throw; } finally { objDLFORMA = null; objAGE = null; } }