title: Is there any difference using Asyn and Sync operation in Asp.net MVC (Web Development)
body: <p>In HTTP protocol, client anyway has to wait till server process the request and return HTML/JSON. What is significant/different between Async and sync operation? I mean there is no GUI which may freeze if sync operation used.</p>
  
  <p>Async method</p>
  
  <pre><code>[HttpGet]
  [Route("{id}")]
  public async Task&lt;ActionResult&lt;Employee&gt;&gt; GetByID(int id)
  {
      return await _employeeRepo.GetAsyncByID(id);
  }
  </code></pre>
  
  <p>Sync method</p>
  
  <pre><code>[HttpGet]
  [Route("{id}")]
  public ActionResult&lt;Employee&gt; GetByID(int id)
  {
      return _employeeRepo.GetByID(id);
  }
  </code></pre>
  
  <p>Async will not freeze the main thread but then how does it make any difference when there is no UI</p>