예제 #1
0
        private OutputViewModel AnalysisText(InputViewModel model)
        {
            var outputModel = new OutputViewModel();

            if (model.IsCalculateNoOfWordInPage)
            {
                outputModel.WordsInPages = _mapper.Map <IEnumerable <WordsInPageViewModel> >(_analysisService.CalculateNoOfWordInPage(model.Input, model.IsFilterStopWords, false));
            }
            return(outputModel);
        }