Last active
December 17, 2015 06:09
-
-
Save beyond-code-github/5563551 to your computer and use it in GitHub Desktop.
Initial values controller
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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