Example #1
0
        private void FailIfInvoiceNumberAlreadyUsed(string invoiceNumber, string ownerId)
        {
            Invoices inv = invRepo.GetInvByNumber(invoiceNumber, ownerId);

            if (inv != null)
            {
                throw new ApplicationException("Invoice " + invoiceNumber + " sudah digunakan!");
            }
        }