Exemplo n.º 1
0
        private void Load()
        {
            MenuItem menuItem = (MenuItem)navigationService.Parameter;

            PageContent = pageContentService.Get(menuItem.Name);

            // Podpinamy notyfikację do wszystkich elementów
            Subscribe();
        }
Exemplo n.º 2
0
        public async Task <IActionResult> GetContent(string id)
        {
            var content = await _pageContentService.Get(id);

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