Exemple #1
0
        public bool DeleteWS(int pcodRolOpcion)
        {
            bool blnResult = false;

            try
            {
                using (_DBMLSeguridadSistemaDataContext SeguridadDC = new _DBMLSeguridadSistemaDataContext(conexion))
                {
                    var resulSet = SeguridadDC.usp_sis_D_RolOpcion(pcodRolOpcion);
                    foreach (var item in resulSet)
                    {
                        blnResult = item.desMessage == "OK" ? true : false;
                    }
                }
            }
            catch (Exception)
            {
                throw;
            }
            return(blnResult);
        }