title: Issue with Delete Action returning HttpNotFound MVC
body: <p>i have list of user Emails and than i try to make delete method , but i didnt understand why it just returning HttpNotFound , did i miss something!Can anyone direct me in the right direction? thx</p>
  
  <p>Controller:</p>
  
  <pre><code>public ActionResult Delete(string User) 
  {
  
      var db = new DataContext();
      var u = db.PX.Find(User);
      if (u==null)
      {
          return HttpNotFound();
      }
      return View(u);
  
  }
  [HttpPost, ActionName("Delete")]
  [ValidateAntiForgeryToken]
  public ActionResult DeleteConfirmed(string User)
  {
      var db = new DataContext();
      var u = db.PX.Find(User);
      db.PX.Remove(u);
      db.SaveChanges();
      return RedirectToAction("Index");
  }
  </code></pre>
  
  <p>View - Index:</p>
  
  <pre><code>&lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;Email&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          @foreach (var user in Model)
          {
              &lt;tr&gt;
                  &lt;td&gt;
  
                       &lt;a href="/User/Delete?User=@user.Email"&gt;delete&lt;/a&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
          }
      &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>Class : </p>
  
  <pre><code>public class user
  {
      public string Email { get; set; }
      private string password = "";
  
      } }
  }
  </code></pre>