Esempio n. 1
0
        public async Task <IActionResult> Edit(Guid id)
        {
            var model = await Task.Run(() => _menuFacade.GetForAdmin(SiteId, id));

            if (model == null)
            {
                return(NotFound());
            }
            return(View(model));
        }
Esempio n. 2
0
        public IActionResult AdminEdit(Guid id)
        {
            var model = _menuFacade.GetForAdmin(SiteId, id);

            if (model == null)
            {
                return(NotFound());
            }
            return(Ok(model));
        }