Пример #1
0
        public IActionResult Edit(long id)
        {
            var article = _articleRepository.Get(id);

            if (article == null)
            {
                return(NotFound());
            }
            var articleViewModel = new ArticleViewModel();

            return(View(articleViewModel.FromDbModel(article)));
        }