public static bool ValidaEliminacionGiro(DTO.GiroDTO theGiroDTO, ref DataTable pobjDatatable) { bool retorno = false; YouCom.Service.BD.SQLHelper wobjSQLHelper = new YouCom.Service.BD.SQLHelper(); wobjSQLHelper.SetParametro("@idGiro", SqlDbType.VarChar, 20, theGiroDTO.IdGiro); try { //==================================================================================== if (wobjSQLHelper.Ejecutar("validaEliminacionGiro", "YouCom", pobjDatatable) <= 0) { retorno = false; } else { retorno = true; } } catch (Exception eobjException) { throw eobjException; } return(retorno); }
public static bool Update(DTO.GiroDTO theGiroDTO) { bool resultado = GiroDAL.Update(theGiroDTO); return(resultado); }
public static bool Insert(DTO.GiroDTO theGiroDTO) { bool resultado = GiroDAL.Insert(theGiroDTO); return(resultado); }