This project is read-only.

Page 2

Mar 13 at 11:40 PM
I have an action result like this where I take dropdown values to limit query results:
public ActionResult RequestList(OrdersViewModel obj)
    {
        var source = from i in db.RequestsWithHours select i;

        if (obj.SubmittorName != null )
        {
            source = source.Where(z => z.RequesterID == obj.SubmittorName);
        }
This works fine for page 1, but when I press page 2, obj is null and the query reverts to all records.

View:
@Html.Grid(Model.Data).Columns(columns =>
{
    columns.Add(o =>o.RequestNum).Titled("Number")
    columns.Add(z => z.Status).Sortable(true);
}).WithPaging(15)
How do I preserve the obj values from the paging actionresult?
Mar 15 at 4:53 PM
Anybody have any ideas? Any help or direction would be appreciated.