public bool Delete(Atendimento_TO pTO) { bool retorno = false; try { retorno = new Atendimento_DAO().Delete(pTO); } catch (Exception) { throw; } return(retorno); }
public bool Save(bool pOpcao, Atendimento_TO pTO) { bool retorno = false; try { if (pOpcao) { retorno = new Atendimento_DAO().Save(pTO); } else { retorno = new Atendimento_DAO().Update(pTO); } } catch (Exception) { throw; } return(retorno); }