public static bool ValidaEliminacionAreasComunes(DTO.AreasComunesDTO theAreasComunesDTO, ref DataTable pobjDatatable) { bool retorno = false; YouCom.Service.BD.SQLHelper wobjSQLHelper = new YouCom.Service.BD.SQLHelper(); wobjSQLHelper.SetParametro("@idAreasComunes", SqlDbType.VarChar, 20, theAreasComunesDTO.IdAreasComunes); try { //==================================================================================== if (wobjSQLHelper.Ejecutar("validaEliminacionAreaComun", "YouCom", pobjDatatable) <= 0) { retorno = false; } else { retorno = true; } } catch (Exception eobjException) { throw eobjException; } return(retorno); }
public static bool Update(DTO.AreasComunesDTO myAreasComunesDTO) { bool resultado = AreasComunesDAL.Update(myAreasComunesDTO); return(resultado); }
public static bool Insert(DTO.AreasComunesDTO myAreasComunesDTO) { bool resultado = AreasComunesDAL.Insert(myAreasComunesDTO); return(resultado); }