예제 #1
0
        public ResultDTO Process()
        {
            Detector detector = new Detector(WordTree);
            string   barName  = Text.ToLower();

            barName = Charset.Clean(barName);
            if (!detector.IsValid(barName))
            {
                Result.Code = CodeKeys.BAD_WORDS_DETECTED;
                return(Result);
            }

            Result.HttpStatusCode = HttpStatusCode.OK;

            return(Result);
        }