コード例 #1
0
 public async Task Register(ISellableItem item)
 {
     try
     {
         using (CashRegisterContext ctx = new CashRegisterContext())
         {
             DisposalDT = DateTime.Now;
             await ctx.RegisterDisposal(this, item);
         }
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }