/// <summary> /// Обработка текстового файла /// </summary> /// <param name="textFile"></param> /// <returns></returns> public ActionResult Process(HttpPostedFileBase textFile) { string text = string.Empty; if (textFile != null && textFile.ContentLength > 0) { using (var reader = new StreamReader(textFile.InputStream)) { text = reader.ReadToEnd(); } } var persons = _textProcessor.FindPersons(text); var model = new ProcessedTextModel() { Text = HighlightingUtil.SetHighlighting(text, persons), Persons = persons }; return(View("Index", model)); }