title: LINQ query to order elements between two variables
body: <p>a complete beginner here.
  <br/> I am trying to create a JSONResult which I am trying to get to return between two variables.
  Here is the action:</p>
  <pre><code>public JsonResult GetVoices(int? PageNumber, int? PageSize)
          {
              var StartRow = ((PageNumber - 1) * PageSize) + 1;
              var EndRow = PageNumber * PageSize;
              var i = 0;
              var data = (from a in db.Content
                          select new
                          {
                              RowNumber = i++,
                              Id = a.Id,
                              Title = a.Title,
                              Description = a.Description,
                              CreatedAt = a.CreatedAt
                          }).ToList();
              return Json(data, JsonRequestBehavior.AllowGet);
          }
  </code></pre>
  <p>As you can see there are two parameters which eventually specify the Row to start from and end from. I want all the RowNumber returned to be between StartRow and LastRow</p>