Skip to content

Instantly share code, notes, and snippets.

@beyond-code-github
Last active December 17, 2015 06:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beyond-code-github/5563551 to your computer and use it in GitHub Desktop.
Save beyond-code-github/5563551 to your computer and use it in GitHub Desktop.
Initial values controller
namespace LinqToQuerystringPagingSample.Controllers
{
using System.Linq;
using System.Web.Http;
public class ValuesController : ApiController
{
// GET api/values
public IQueryable<string> Get()
{
return new string[] { "Optimus prime", "Megatron", "Lion-o", "Snarf", "He-man", "Skeletor" }.AsQueryable();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment