// 修改 public ResultEntity <int> UpdatePosition(Position uie) { ResultEntity <int> result; try { int IntRet = 0; var repResult = dal.Update <Position>(uie); if (repResult) { IntRet = 1; } if (IntRet > 0) { result = new ResultEntity <int>(true, ConstantDefine.TipSaveSuccess, IntRet); } else { result = new ResultEntity <int>(ConstantDefine.TipSaveFail); } } catch (Exception ex) { Loger.LogErr(ex); result = new ResultEntity <int>(ex.Message); } return(result); }
public void Update(PositionDto position) { positionDao.Update(DtoConverter.Convert(position)); }