public static bool ValidaEliminacionPorteria(DTO.PorteriaDTO thePorteriaDTO, ref DataTable pobjDatatable) { bool retorno = false; YouCom.Service.BD.SQLHelper wobjSQLHelper = new YouCom.Service.BD.SQLHelper(); wobjSQLHelper.SetParametro("@idPorteria", SqlDbType.VarChar, 20, thePorteriaDTO.IdPorteria); try { //==================================================================================== if (wobjSQLHelper.Ejecutar("validaEliminacionPorteria", "YouCom", pobjDatatable) <= 0) { retorno = false; } else { retorno = true; } } catch (Exception eobjException) { throw eobjException; } return(retorno); }
public static bool Update(DTO.PorteriaDTO myPorteriaDTO) { bool resultado = PorteriaDAL.Update(myPorteriaDTO); return(resultado); }
public static bool Insert(DTO.PorteriaDTO myPorteriaDTO) { bool resultado = PorteriaDAL.Insert(myPorteriaDTO); return(resultado); }