Exemplo n.º 1
0
 public string Add(RentFee fee)
 {
     ISqlMapper mapper = MapperHelper.GetMapper();
     RentFeeDao dao = new RentFeeDao(mapper);
     return dao.Add(fee);
 }
Exemplo n.º 2
0
 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 },
     });
 }