Informedica.GenForm.Mvc2.Controllers.ProductsController.GetProductList C# (CSharp) Method

GetProductList() public method

public GetProductList ( Newtonsoft paging ) : System.Web.Mvc.ActionResult
paging Newtonsoft
return System.Web.Mvc.ActionResult
        public ActionResult GetProductList(Newtonsoft.Json.Linq.JObject paging)
        {
            int start = Int32.Parse(paging.Value<string>("start"));
            int limit = Int32.Parse(paging.Value<string>("limit"));
            string filter = paging.Value<string>("filter");

            ProductInfoList list = ProductInfoList.GetProductInfoList(start, limit);
            // temporary limit, have to inmplement a paging mechanism.
            return this.Direct(new { totalCount = list.TotalCount, records = list });
        }