title: not show take(4) Data in Partial View
body: <p>i Creating News Site in ASP.Net MVC .</p>
  
  <p>I Want to Show 4 last Row Data in Database When Them Type Is ("SP") .</p>
  
  <p>But When i Run Project Show Me Just Last Row .</p>
  
  <p>How I Resolve it ?</p>
  
  <p>My Database : <a href="http://i.stack.imgur.com/KQ2d0.png" rel="nofollow">Database Record</a></p>
  
  <p>I Create Repository This .</p>
  
  <pre><code>public List&lt;Tbl_News&gt; GetSpecialNews()
      {
          try
          {
              List&lt;Tbl_News&gt; qGetSpecialNews = (from a in db.Tbl_News
                                     where a.Type.Equals("sp")
                                     select a).OrderByDescending(s =&gt; s.ID).Skip(0).Take(4).ToList();
              return qGetSpecialNews;
          }
          catch (Exception)
          {
  
              return null;
          }
      }
  </code></pre>
  
  <p>Partial View :</p>
  
  <pre><code>@{
              foreach (var item in RNews.GetSpecialNews())
              {
                  &lt;div class="sec-special-page-news-img"&gt;
                      &lt;img src="~/Content/img/NewsPic/@item.Image" /&gt;
                  &lt;/div&gt;
                  &lt;div class="sec-special-page-news-body"&gt;
                      &lt;a href="@item.ID"&gt;@item.Title&lt;/a&gt;
                      &lt;ul class="mini-info"&gt;
                          &lt;li&gt;@item.Date&lt;span class="glyphicon glyphicon-time"&gt;&lt;/span&gt;&lt;/li&gt;
                      &lt;/ul&gt;
                  &lt;/div&gt;
              }
          }
  </code></pre>
  
  <p>Home Controll :</p>
  
  <pre><code>public class HomeController : Controller
  {
      Rep_News RNews = new Rep_News();
      // GET: Home
      public ActionResult Index()
      {
          var q = RNews.GetSpecialNews();
          return View(q);
      }
  }
  </code></pre>