コード例 #1
0
 public override void Update(int id, OwnerPayoutRevenueModel model)
 {
     try
     {
         OwnerPayoutProvider provider = new OwnerPayoutProvider(_context);
         OwnerPayout         entity   = provider.Retrieve(id);
         provider.MapData(model, entity, false);
         provider.Update(id, entity);
     }
     catch
     {
         throw;
     }
 }
コード例 #2
0
 public override void Delete(int id)
 {
     try
     {
         // entity deletion does not physically delete the record; it marks [IsDeletd] = true
         OwnerPayoutProvider provider = new OwnerPayoutProvider(_context);
         OwnerPayout         entity   = provider.Retrieve(id);
         entity.IsDeleted = true;
         provider.Update(id, entity);
     }
     catch
     {
         throw;
     }
 }