예제 #1
0
        // GET: ArticleCategory/Edit/5
        public async Task <ActionResult> Edit(int id)
        {
            var cat = await _articleCategoryService.FindByIdAsync(id);

            var model = new ArticleCategoryViewModel
            {
                Category = cat,
                Parents  = await _articleCategoryService.GetByCriteria().ToListAsync()
            };

            return(View(model));
        }