title: ArgumentException: The key value at position 0 of the call to 'DbSet<News>.Find' was of type 'string', which does not match the property type of int'
body: <p>This error is thrown when I try to edit my post.</p>
  <p>Here is my code:</p>
  <pre class="lang-cs prettyprint-override"><code>public async Task&lt;IActionResult&gt; Edit(string id)
  {
      if (id == null)
      {
          return NotFound();
      }
      // issue 
      var news = await _context.News.FindAsync(id);
      if (news == null)
      {
          return NotFound();
      }
      return View(news);
  }
  </code></pre>
  <p>The debugger stops the code at</p>
  <pre class="lang-cs prettyprint-override"><code>var news = await _context.News.FindAsync(id);
  </code></pre>
  <p>Code for my model is</p>
  <pre class="lang-cs prettyprint-override"><code>public int id { get; set; }
  [Required(ErrorMessage = &quot;Enter your name.&quot;)]
  public string Author { get; set; }
  [Required(ErrorMessage = &quot;Enter the title.&quot;)]
  public string Title { get; set; }
  [Required(ErrorMessage = &quot;Enter the issued date.&quot;)]
  [DataType(DataType.Date)]
  public DateTime IssueDate { get; set; }
  [Required(ErrorMessage = &quot;Enter a message.&quot;)]
  [DataType(DataType.MultilineText)]
  public string Body { get; set; }
  </code></pre>
  <p>Any idea on how to fix this?</p>