示例#1
0
        public ActionResult Edit(int?id)
        {
            ArticleCategoryDto model = null;

            if (!id.HasValue)  //新建
            {
                model = new ArticleCategoryDto();
            }
            else  //编辑
            {
                model = _articlecategoryService.GetById(id.Value);
            }
            return(View(model));
        }