Ejemplo n.º 1
0
        // GET: Articles/Details/5
        public async Task <IActionResult> Details(Guid?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var articleDto = await _articleCategoryService.GetArticleByIdAsync(id.Value);



            if (articleDto == null)
            {
                return(NotFound());
            }

            return(View(Mapper.Map <ArticleViewModel>(articleDto)));
        }