Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("#lhsPanelBar").kendoMenu({
- orientation: 'vertical',
- dataSource:
- {
- type: 'json',
- transport: {
- read: "http://localhost:3549/api/LHSMenu"
- }
- },
- });
- public class LHSMenuController : ApiController
- {
- private IRepo repo;
- public LHSMenuController()
- {
- repo = new Repository();
- }
- [HttpGet]
- public IEnumerable<LHSMenu> GetLHSMenu()
- {
- return this.repo.Menu;
- }
- }
- [HttpGet]
- public IEnumerable<LHSMenu> GetLHSMenu()
- {
- return Json(this.repo.Menu,JsonBehavoir.AllowGet);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement