public JsonResult Update(tbl_jiaolian model) { model.editer = SessionUser.UserNo; model.editdate = DateTime.Now; JiaxInfo jiaxinfo = new JiaxInfo(); OperateResultModel orm = jiaxinfo.UpdateJiaolian(model); return(JsonResultHelper.ConvertToJsonResult(orm)); }
public PartialViewResult Edit(string jiaolh) { JiaxInfo jiaxinfo = new JiaxInfo(); tbl_jiaolian model = null; if (!string.IsNullOrEmpty(jiaolh)) { model = jiaxinfo.QueryJiaolian(jiaolh); } return(PartialView(model)); }
/// <summary> /// 更新信息 /// </summary> /// <param name="model">实体</param> /// <returns></returns> public OperateResultModel UpdateJiaolian(tbl_jiaolian model) { TblJiaolianDal dal = new TblJiaolianDal(); return(dal.Update(model)); }
/// <summary> /// 插入信息 /// </summary> /// <param name="model">实体</param> /// <returns></returns> public OperateResultModel InsertJiaolian(tbl_jiaolian model) { TblJiaolianDal dal = new TblJiaolianDal(); return(dal.Insert(model)); }