コード例 #1
0
ファイル: Service.svc.cs プロジェクト: StefanAniff/hb.trex
 public void ExcludeTimeEntry(TimeEntry timeEntry)
 {
     try
     {
         var invoiceId = timeEntry.InvoiceId.GetValueOrDefault();
         _timeEntryService.ExcludeTimeEntry(timeEntry);
         var invoice = _invoiceService.GetInvoiceById(invoiceId);
         _invoiceService.ReCalculateInvoice(invoice);
     }
     catch (Exception ex)
     {
         LogError(ex);
     }
 }