示例#1
0
        public IEnumerable <string> Post([FromBody] TagSearchByDeclaredTag search)
        {
            List <string> returnStrings = null;

            if (search != null && search.Tag != null && search.Tag.Length > 0 && search.EmailBodyText != null && search.EmailBodyText.Length > 0)
            {
                returnStrings = new List <string>();
                List <string> tagsToSearchFor = new List <string>
                {
                    search.Tag
                };
                var tags = EmailParser.ParseTags(search.EmailBodyText, tagsToSearchFor, search.ExcludePriorEmailsFromSearch);
                returnStrings = TagProcessingBusinessLogic.ProcessTagsFoundInEmailBodyText(search, returnStrings, tags, search.PersistResultsServerSide, false, false);
            }
            return(CreateReturnStringsTelemetry(search, returnStrings));
        }