private bool CreatedInvoice(InvoiceViewModel invoice, DataTable dtInvoice) { bool isInserted = false; try { isInserted = _repoInvoice.CreateInvoiceRecord(invoice, dtInvoice); } catch (Exception ex) { _errorLogs.LogErrors("frmInvoice", "CreatedInvoice", ex.Message); } return(isInserted); }