Exemple #1
0
        // GET: Articles/Create
        public IActionResult Create()
        {
            var article     = new CreateOrUpdateArticleViewDto();
            var categoryIds = _articleCategoryService.GetAllCategoryNameValue().Result;

            ViewData["CategoryIds"] = new MultiSelectList(categoryIds, "Value", "Name");
            return(View(article));
        }