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 bool Atualizar(string FormPag, int Parcelas, int ID_AGE, int ID_FUN, DateTime Age_Data, double Age_ValorSessao, int Age_Hora) { var objDlTAB_FORMPAG = new DLTAB_FORMPAG(); var objBLTAB_AGENDA = new DLTAB_AGENDA(); try { objDlTAB_FORMPAG.Atualizar(ID_AGE, FormPag, Parcelas); objBLTAB_AGENDA.Atualizar(ID_AGE, Age_Data, Age_Hora, Age_ValorSessao, ID_FUN); return(true); } catch (Exception) { return(false); throw; } finally { objDlTAB_FORMPAG = null; objBLTAB_AGENDA = null; } }