public ActionResult ArticleSearchSetting() { var model = new ArticleSearchSetModel(); model.Init(SysConfigRepository); return(PartialView(model)); }
public async Task <ActionResult> ArticleSearchSetting(ArticleSearchSetModel model) { var result = new JsonModel(); if (!ModelState.IsValid) { result.GetError(ModelState); return(Json(result)); } model.Save(SysConfigRepository); await LogRepository.Insert(TableSource.SysConfigures, OperationType.Update, "保存文章搜索分类配置", 0); result.Data = model; result.message = "保存成功!"; return(Json(result)); }