Advertisement
Guest User

Untitled

a guest
Apr 17th, 2014
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. $("#lhsPanelBar").kendoMenu({
  2. orientation: 'vertical',
  3. dataSource:
  4. {
  5. type: 'json',
  6. transport: {
  7. read: "http://localhost:3549/api/LHSMenu"
  8. }
  9. },
  10. });
  11.  
  12. public class LHSMenuController : ApiController
  13. {
  14. private IRepo repo;
  15. public LHSMenuController()
  16. {
  17. repo = new Repository();
  18. }
  19.  
  20. [HttpGet]
  21. public IEnumerable<LHSMenu> GetLHSMenu()
  22. {
  23. return this.repo.Menu;
  24. }
  25. }
  26.  
  27. [HttpGet]
  28. public IEnumerable<LHSMenu> GetLHSMenu()
  29. {
  30. return Json(this.repo.Menu,JsonBehavoir.AllowGet);
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement