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