public static bool ValidaEliminacionGastoComun(DTO.GastosComunesDTO theGastosComunesDTO, ref DataTable pobjDatatable) { bool retorno = false; YouCom.Service.BD.SQLHelper wobjSQLHelper = new YouCom.Service.BD.SQLHelper(); wobjSQLHelper.SetParametro("@idGastoComun", SqlDbType.VarChar, 20, theGastosComunesDTO.IdGastoComun); try { //==================================================================================== if (wobjSQLHelper.Ejecutar("validaEliminacionGastoComun", "YouCom", pobjDatatable) <= 0) { retorno = false; } else { retorno = true; } } catch (Exception eobjException) { throw eobjException; } return(retorno); }
public static bool Update(DTO.GastosComunesDTO myGastosComunesDTO) { bool resultado = GastosComunesDAL.Update(myGastosComunesDTO); return(resultado); }
public static bool Insert(DTO.GastosComunesDTO myGastosComunesDTO) { bool resultado = GastosComunesDAL.Insert(myGastosComunesDTO); return(resultado); }