/// <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)); }
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)); }
public JsonResult SaveOrUpate(Models.ArticleDTO dto) { var result = _iArticleService.SaveOrUpdateArticle(dto); return(Json(result)); }