title: Get next and previous entity of specific Id with Entity Framework?
body: <p>I have a employee form for editing or showing a personal information in my project with ASP.NET MVC5, this form get an <code>Id</code> and shows the employee info. </p>
  
  <p>In this form I have to have <code>Next</code> and <code>Previous</code> button to allow admin for navigating to next or previous employee(if there isn't employee the button should be disable). In the other hand this form have a variable sorting that sets by Admin.</p>
  
  <p>So I want to put two <code>&lt;a /&gt;</code> tags with next and previous employee Id that linked to employee form.</p>
  
  <pre><code>&lt;&lt; Previous employee Id by sorting             Next employee Id by sorting &gt;&gt;
  </code></pre>
  
  <p>I know how should I get current employee, It's pretty easy in Entity Framework.</p>
  
  <p>But how can I get the next and previous Id of the current Id with Entity Framework?</p>