private void Load() { MenuItem menuItem = (MenuItem)navigationService.Parameter; PageContent = pageContentService.Get(menuItem.Name); // Podpinamy notyfikację do wszystkich elementów Subscribe(); }
public async Task <IActionResult> GetContent(string id) { var content = await _pageContentService.Get(id); if (content == null) { return(NotFound()); } return(Ok(content)); }