title: Call Method in Controller from View(cshtml) .net 6.0
body: <p>how to call a controller GET method in a view? (.NET 6.0)<br />
  How to display the result after clicking, for example, on a button?</p>
  <p><strong>Controller Method:</strong></p>
  <pre><code>public string GetString()
      {
          string time = &quot;Operation time: &quot; + _lastExecutionTime;
          return time;
      }
  </code></pre>