title: I can not get authorized account's id(primary key) for profile page view
body: <p>I'm preparing a homework, in the project i need to show every user their profile pages when they click the profile button.But I cant reach authorized person's id from the database.When I manually insert id value, it shows correctly but when i click profile button it's giving "source cant found" error.</p>
  
  <p>I tried to fix routes.</p>
  
  <pre><code> public class ProfileController : Controller
   {
      datingDbEntities db = new datingDbEntities();
  
      [Authorize]
      [ Route( "Profile/Profil/{id}" ) ]
  
      public ActionResult Profil(int? id)
      {
          userAcc user = db.userAcc.Find(id);
          return View(user);
      }
    }
  </code></pre>
  
  <p>This is the controller side.</p>
  
  <pre><code>@using datingo.Models.EntityFramework
  @model userAcc
  
  &lt;tr&gt;
          &lt;td&gt;@Model.userId &lt;/td&gt;
          &lt;td&gt;@Model.userName &lt;/td&gt;
  &lt;tr&gt;
  </code></pre>
  
  <p>this is the .cshtml side.</p>
  
  <pre><code>namespace datingo.Models.EntityFramework
  {
      using System;
      using System.Collections;
      using System.Collections.Generic;
  
      public partial class userAcc
    {
  
  
       public int userId { get; set; }
       public string userName { get; set; }
       public string userPw { get; set; }
       public string userMail { get; set; }
       public Nullable&lt;bool&gt; userGender { get; set; }
       public string userAd { get; set; }
       public string userSoyad { get; set; }
       public Nullable&lt;int&gt; userBoy { get; set; }
       public Nullable&lt;int&gt; userKilo { get; set; }
       public string userHair { get; set; }
       public string userEye { get; set; }
       public string userCountry { get; set; }
       public string userFavTeam { get; set; }
       public string userBurc { get; set; }
       public string userFavMusic { get; set; }
       public string userFavFilm { get; set; }
       public string userMeslek { get; set; }
       public string userEgitim { get; set; }
       public byte[] userPhoto { get; set; }
  
   }
  }
  </code></pre>
  
  <p>this is the entity side model class, generated from database first model</p>
  
  <p>by the way in nav bar the linking is like    "/Profile/Profil"</p>
  
  <pre><code>              &lt;li class="nav-item"&gt;
                  &lt;a class="nav-link" href="/Profile/Profil"&gt;Profile&lt;/a&gt;
                &lt;/li&gt; 
  </code></pre>
  
  <p>i except the profile button output as Profile/Profil/"authorizeduserid"</p>
  
  <p>by the way in my "Model" folder there is one more folder named as "Entity Framework".My EF in that folder.</p>