public ActionResult Literatures(LiteratureParameter param) { param.KeyWord = HttpUtility.UrlDecode(param.KeyWord); return(View( new InternalDataTransferToView { List = LiteratureTableProvider.List(param), Data = param })); }
public ActionResult LiteratureEdit(LiteratureParameter param) { if (0L < param.Entity.LiteratureId) { param.Entity.Fill(LiteratureTableProvider.Detail(param)); } return(View(new InternalDataTransferToView { Data = param })); }
public ActionResult AjaxLiteratureDelete(LiteratureParameter param) { var result = new JsonNetResult(); var r = new GeneralResponse(); try { r.Code = LiteratureTableProvider.Delete(param).ToString(Section.Get.Common.Culture); } catch (Exception ex) { Log.Error(ex.Message, ex); r.Code = "-11"; } result.Data = r; return(result); }
public ActionResult AjaxLiteratureEdit(LiteratureParameter param) { var result = new JsonNetResult(); var r = new GeneralResponse(); try { r.Code = (0L < param.Entity.LiteratureId ? LiteratureTableProvider.Update(param) : LiteratureTableProvider.Create(param)).ToString(Section.Get.Common.Culture); } catch (Exception ex) { Log.Error(ex.Message, ex); r.Code = "-11" + ex.Message; } result.Data = r; return(result); }