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); } }