private object[] Take(AccountTranferVourcherEntity info) { return(new object[] { "@RefDetailID", info.RefDetailId, "@RefID", info.RefId, "@AccountNumber", info.AccountNumber, "@CorrespondingAccountNumber", info.CorrespondingAccountNumber, "@AmountOC", info.AmountOc, "@AmountExchange", info.AmountExchange, "@CurrencyCode", info.CurrencyCode, "@Description", info.Description, "@ExchangeRate", info.ExchangeRate, "@BudgetSourceCode", info.BudgetSourceCode, "@PostedDate", info.PostedDate, "@VoucherTypeID", info.VoucherTypeId }); }
public int InserAccountTranferVourcher(AccountTranferVourcherEntity accountTranferVourcher) { const string procedures = @"uspInsert_AccountTranferVourcher"; return(Db.Insert(procedures, true, Take(accountTranferVourcher))); }