public ActionResult InvestorEdit(InvestorParameter param) { if (0L < param.Entity.InvestorId) { param.Entity.Fill(InvestorTableProvider.Detail(param)); } return(View(new InternalDataTransferToView { Data = param })); }
public ActionResult Investor(InvestorParameter param) { param.KeyWord = HttpUtility.UrlDecode(param.KeyWord); return(View( new InternalDataTransferToView { List = InvestorTableProvider.List(param), Data = param })); }
public ActionResult AjaxInvestorDelete(InvestorParameter param) { var result = new JsonNetResult(); var r = new GeneralResponse(); try { r.Code = InvestorTableProvider.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 AjaxInvestorEdit(InvestorParameter param) { var result = new JsonNetResult(); var r = new GeneralResponse(); try { r.Code = (0L < param.Entity.InvestorId ? InvestorTableProvider.Update(param) : InvestorTableProvider.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); }