public class WhitepapersController : ApiController { // GET /whitepapers [WebApiOutputCache(120, 60, false)] public IQueryable<filteredwhitepaperlist_result> Get() { using (var rep = new WhitepaperRepository()) { var lstWp = rep.GetPagedFilteredWhitepapers(1, 20, "newest"); // this return list of Complex type "FilteredWhitepaperList_Result" return lstWp.AsQueryable(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)