title: Operator '==' can not be applied to operands of type 'int' and 'Task<int>'
body: <p>In ASP.NET Core 3.1, I am trying to make my methods asynchronous.</p>
  <p>Here is my code:</p>
  <pre><code>public async Task&lt;int&gt; GetMaxNews()
  {
      return await _context.PNewses.MaxAsync(s =&gt; s.Id);
  }
  </code></pre>
  <p>and I use this method in this code snippet:</p>
  <pre><code>public async Task&lt;List&lt;PNews&gt;&gt; LastNews()
  {
      return await _context.PNewses.Where(s =&gt; s.Id == GetMaxNews()).ToList();
  }
  </code></pre>
  <p>I get this error:</p>
  <blockquote>
  <p>Operator '==' can not be applied to operands of type 'int' and 'Task'</p>
  </blockquote>
  <p>Can anybody help me? What is the problem?</p>