public List <TControllerRoleAccess> ReadListRoleAccess(ref string message)
        {
            TControllerRoleAccessRPO RPO = new TControllerRoleAccessRPO(imap_);

            if (RPO.ReadList(ref exec))
            {
                return(RPO.Result.Collection);
            }
            else
            {
                message = "Internal Server Error";
            }

            return(null);
        }
        public bool CheckDuplicateRoleAccess(string controllerName, string roleID, ref string message)
        {
            TControllerRoleAccessRPO crRPO = new TControllerRoleAccessRPO(imap_);
            Conditions cnd = new Conditions();

            cnd.AddFilter(nameof(TControllerRoleAccess.ControllerName), Operator.Equals(controllerName));
            cnd.AddFilter(nameof(TControllerRoleAccess.RoleID), Operator.Equals(roleID));
            crRPO.Conditions(cnd);
            //crRPO.Where(nameof(TControllerRoleAccess.ControllerName)).Equals(controllerName);
            //crRPO.Where(nameof(TControllerRoleAccess.RoleID)).Equals(roleID);
            if (crRPO.ReadList(ref exec))
            {
                return(crRPO.Result.AffectedRow > 0);
            }
            else
            {
                message = exec.Message;
            }

            return(true);
        }