title: argument type lambda expression is not assignable to parameter type int error
body: <p>I have a <code>Major</code> model like this:</p>
  
  <pre><code>public int Id { get; set; }
  public string MajorName{ get; set; }
  public string Password { get; set; }
  public System.DateTime RegisterDate { get; set; }
  public string StudentId { get; set; }
  public string State { get; set; }
  public int FacultyId { get; set; }
  public int MajorId { get; set; }
  public HttpPostedFileBase ImgFile { get; set; }
  </code></pre>
  
  <p>So I have a method like this in my repository for the above model:</p>
  
  <pre><code>public Major FindMajorById(int id)
  {
      return _dbcontext.Majors.Find(id);
  }
  </code></pre>
  
  <p>In my view I passed the id and I need the name of major:</p>
  
  <pre><code>&lt;td&gt;
      @{
          EducationRepositor.MajorRepository objmajor=new MajorRepository();
       }
       @Html.DisplayFor(objmajor.FindMajorById(modelItem =&gt; int.Parse(item.MajorId)).MajorName)
  &lt;/td&gt;
  &lt;td&gt;
      @Html.DisplayFor(modelItem =&gt; item.Degree)
  &lt;/td&gt;
  </code></pre>
  
  <p>But I get error in my view in this line:</p>
  
  <pre><code>@Html.DisplayFor(objmajor.FindMajorById(modelItem =&gt; int.Parse(item.MajorId)).MajorName)
  </code></pre>
  
  <p>My error:</p>
  
  <blockquote>
    <p>argument type lambda expression is not assignable to parameter type int</p>
  </blockquote>