示例#1
0
        public async Task <IActionResult> Create(CreateOrUpdateArticleViewDto article)
        {
            if (ModelState.IsValid)
            {
                await _articleCategoryService.CreateOrEditArticleAsync(Mapper.Map <CreateOrUpdateArticleDto>(article));


                return(RedirectToAction(nameof(Index)));
            }

            return(View(article));
        }