public ActionResult SZDLCreate(t_bp_SZDLCheck model) { ControllerResult result = ControllerResult.SuccResult; try { szdlCheckRep.Insert(model); } catch (Exception ex) { result = ControllerResult.FailResult; result.ErroMsg = ex.Message; } return(Content(result.ToJson())); }
public ActionResult SZDLEdit(t_bp_SZDLCheck model) { ControllerResult result = ControllerResult.SuccResult; try { //jzjnCheckRep.UpdateOnly(model, t => t.Id == model.Id, t => new //{ //}); szdlCheckRep.Update(model); } catch (Exception ex) { result = ControllerResult.FailResult; result.ErroMsg = ex.Message; } return(Content(result.ToJson())); }