Example #1
0
        public IActionResult GetItemsForAdmin(Guid id)
        {
            var menuItems = _menuFacade.GetMenuItemsForAdminList(SiteId, id);

            return(Ok(menuItems));
        }
Example #2
0
        public async Task <IActionResult> GetItemsForAdmin(Guid id)
        {
            var menuItems = await Task.Run(() => _menuFacade.GetMenuItemsForAdminList(SiteId, id));

            return(Ok(menuItems));
        }