public IActionResult Index(string plainText) { var result = new HashResult { PlainText = plainText, AlgorithmName = _hashAlgorithm.Name, RecentRequests = _applicationState.GetRecentHashes(_hashAlgorithm.Name), MetaDescription = MetaDescription, MetaKeywords = MetaKeywords, HashDescription = HashDescription }; if (!string.IsNullOrEmpty(plainText)) { _applicationState.AddPlainText(_hashAlgorithm.Name, plainText); result.Hash = _hashAlgorithm.ComputeHash(plainText); } return(View("~/Views/Hash/Index.cshtml", result)); }