title: Synchronous and async methods in a web.api
body: <p>Can someone please explain if this code is a potential deadlock.
  Mixing sync database calls with async database calls like the code below. Or if the async call was executed first, is that the risk for deadlock.</p>
  
  <pre><code>    [Route("{id}/someobjects")]
      [ResponseType(typeof(IEnumerable&lt;SomobjectDto&gt;))]
      public async Task&lt;IHttpActionResult&gt; GetSomeobjects(string id)
      {
          var syncMethodResult = SyncDBCallMethod(); //In this method there is a databas call..
  
          var asyncMethodresult = await AsyncDBMCallMethod(1L);  //In this method there is a Async databas call..
  </code></pre>