public async Task <IActionResult> Edit(Guid id) { var model = await Task.Run(() => _menuFacade.GetForAdmin(SiteId, id)); if (model == null) { return(NotFound()); } return(View(model)); }
public IActionResult AdminEdit(Guid id) { var model = _menuFacade.GetForAdmin(SiteId, id); if (model == null) { return(NotFound()); } return(Ok(model)); }