示例#1
0
        /// <summary>
        /// 单个图片编辑
        /// </summary>
        /// <returns></returns>
        public ActionResult OneEdit(string artKey)
        {
            var model = _iArticleService.GetArticle(artKey);

            if (model == null)
            {
                model        = new Models.ArticleDTO();
                model.ArtKey = artKey;
            }
            return(View(model));
        }
示例#2
0
 public ActionResult Edit(int?Id, int?Category)
 {
     Models.ArticleDTO model = new Models.ArticleDTO();
     if (Id > 0)
     {
         model = _iArticleService.GetArticle(Id.Value);
     }
     else
     {
         model.Category = Category;
     }
     return(View(model));
 }
示例#3
0
        public JsonResult SaveOrUpate(Models.ArticleDTO dto)
        {
            var result = _iArticleService.SaveOrUpdateArticle(dto);

            return(Json(result));
        }