public string Add(RentFee fee) { ISqlMapper mapper = MapperHelper.GetMapper(); RentFeeDao dao = new RentFeeDao(mapper); return dao.Add(fee); }
public bool Update(RentFee fee) { //if (string.IsNullOrEmpty(fee.ID)) throw new Exception("房租ID不能为空"); ISqlMapper mapper = MapperHelper.GetMapper(); RentFeeDao dao = new RentFeeDao(mapper); return dao.Update(new RentFeeUpdateForm { Entity = fee, RentFeeQueryForm = new RentFeeQueryForm { ID = fee.ID }, }); }