public static bool UpdateUnpostedVoucher(AccountingTransactionTempDto voucherEntryDto) { try { var entity = new tAccountingTransactionTemp { CompanyId = voucherEntryDto.CompanyId, CreditAccount = voucherEntryDto.CreditAccount, DebitAccount = voucherEntryDto.DebitAccount, AccountingYearId = voucherEntryDto.AccountingYearId, VoucherNo = voucherEntryDto.VoucherNo, Currency = voucherEntryDto.CurrencyCode, LineId = voucherEntryDto.LineId, Total = voucherEntryDto.Total, UserId = voucherEntryDto.UserId, ValueTotal = voucherEntryDto.ValueTotal, VoucherDate = voucherEntryDto.VoucherDate, }; var result = AccountingDataProvider.UpdateUnpostedVoucher(entity); if (result == 1) { return(true); } return(false); } catch (Exception exception) { throw new Exception(exception.Message); } }