Exemplo n.º 1
0
        // GET api/<controller>
        public async Task <IHttpActionResult> Get([FromUri] DataSourceLoadOptions loadOptions)
        {
            ItemTableBLL bll     = new ItemTableBLL();
            var          results = bll.GetAll();

            loadOptions.PrimaryKey = new[] { "ItemID" };
            //loadOptions.PaginateViaPrimaryKey = true;

            return(Json(await DataSourceLoader.LoadAsync(results, loadOptions)));
        }