public async Task <AccountsNature> AddAccountsNatureAsync(AccountsNature accountsNature) { _uow.AccountsNatures.Add(accountsNature); await _uow.SaveChangesAsync().ConfigureAwait(false); return(accountsNature); }
public async Task <DL> AddDLAsync(DL dL) { _uow.DLs.Add(dL); await _uow.SaveChangesAsync().ConfigureAwait(false); return(dL); }
public async Task <AccountDocument> AddAccountDocumentAsync(AccountDocument accountDocument) { _uow.AccountDocuments.Add(accountDocument); await _uow.SaveChangesAsync().ConfigureAwait(false); return(accountDocument); }
public async Task <SLStandardDescription> AddSLStandardDescriptionAsync(SLStandardDescription sLStandardDescription) { _uow.SLStandardDescriptions.Add(sLStandardDescription); await _uow.SaveChangesAsync().ConfigureAwait(false); return(sLStandardDescription); }
public async Task <Style> AddStyleAsync(Style style) { _uow.Styles.Add(style); await _uow.SaveChangesAsync().ConfigureAwait(false); return(style); }
public async Task <GL> AddGLAsync(GL gL) { _uow.GLs.Add(gL); await _uow.SaveChangesAsync().ConfigureAwait(false); return(gL); }
public async Task <SL> AddSLAsync(SL sL) { _uow.SLs.Add(sL); await _uow.SaveChangesAsync().ConfigureAwait(false); return(sL); }
public async Task <FinancialYear> AddFinancialYearAsync(FinancialYear financialYear) { _uow.FinancialYears.Add(financialYear); await _uow.SaveChangesAsync().ConfigureAwait(false); return(financialYear); }
public async Task <RelatedPerson> AddRelatedPersonAsync(RelatedPerson relatedPerson) { _uow.RelatedPeople.Add(relatedPerson); await _uow.SaveChangesAsync().ConfigureAwait(false); return(relatedPerson); }
//public async Task<AccDocumentItem> AddAccDocumentItemAsync(AccDocumentItem accDocumentItem) //{ // _uow.AccDocumentItems.Add(accDocumentItem); // var xxx=await _uow.SaveChangesAsync().ConfigureAwait(false); // return accDocumentItem; //} public AccDocumentItem AddAccDocumentItemAsync(AccDocumentItem accDocumentItem) { _uow.AccDocumentItems.Add(accDocumentItem); var xxx = _uow.SaveChangesAsync(); return(accDocumentItem); }
public async Task <Customer> AddCustomerAsync(Customer customer) { _context.Customers.Add(customer); await _context.SaveChangesAsync(); return(customer); }
public async Task <DLAccountsNature> AddDLAccountsNatureAsync(DLAccountsNature dLAccountsNature) { _uow.DLAccountsNatures.Add(dLAccountsNature); await _uow.SaveChangesAsync().ConfigureAwait(false); return(dLAccountsNature); }
public async Task <AccDocumentHeader> UpdateAccDocumentHeaderAsync(AccDocumentHeader accDocumentHeader) { // CultureInfo us = new CultureInfo("en-us"); // var cmd = $"EXEC AccDocumentHeader_Update @AccDocumentHeaderId = {accDocumentHeader.AccDocumentHeaderId}," + //$" @DocumentNumber = {accDocumentHeader.DocumentNumber}," + // $" @DailyNumber = {accDocumentHeader.DailyNumber}," + // $" @SystemFixNumber = {accDocumentHeader.SystemFixNumber}," + // $" @DocumentDate = '{accDocumentHeader.DocumentDate.ToString(us)}'," + // $" @SystemName = N'{accDocumentHeader.SystemName}'," + // $" @Exporter = N'{accDocumentHeader.Exporter}'," + // $" @Seconder = N'{accDocumentHeader.Seconder}'," + // $" @HeaderDescription = N'{accDocumentHeader.HeaderDescription}'," + // $" @ManualDocumentNumber = {accDocumentHeader.ManualDocumentNumber}," + // $" @BaseDocument = N'{accDocumentHeader.BaseDocument}'," + // $" @Seconder = N'{accDocumentHeader.Seconder}'," + // $" @TypeDocumentId = {accDocumentHeader.TypeDocumentId}," + // $" @DocumentHistory = N'{accDocumentHeader.DocumentHistory}'," + // $" @Attachment = N'{accDocumentHeader.Attachment}'," + // $" @Status = {Convert.ToInt16(accDocumentHeader.Status)}"; // await _uow.Database.ExecuteSqlCommandAsync(cmd).ConfigureAwait(false); _uow.Entry(accDocumentHeader).State = EntityState.Modified; await _uow.SaveChangesAsync().ConfigureAwait(false); return(accDocumentHeader); }
public async Task <Property> AddPropertyAsync(Property property) { _uow.Properties.Add(property); await _uow.SaveChangesAsync().ConfigureAwait(false); return(property); }
public async Task <Company> AddCompanyAsync(Company company) { _uow.Companies.Add(company); await _uow.SaveChangesAsync().ConfigureAwait(false); return(company); }
public async Task <BankAccount> AddBankAccountAsync(BankAccount bankAccount) { _uow.BankAccounts.Add(bankAccount); await _uow.SaveChangesAsync().ConfigureAwait(false); return(bankAccount); }
public async Task <TypeDocument> AddTypeDocumentAsync(TypeDocument typeDocument) { _uow.TypeDocuments.Add(typeDocument); await _uow.SaveChangesAsync().ConfigureAwait(false); return(typeDocument); }
public async Task <Bank> AddBankAsync(Bank bank) { _uow.Banks.Add(bank); await _uow.SaveChangesAsync().ConfigureAwait(false); return(bank); }
public async Task <DocumentNumbering> AddDocumentNumberingAsync(DocumentNumbering documentNumbering) { _uow.DocumentNumberings.Add(documentNumbering); await _uow.SaveChangesAsync().ConfigureAwait(false); return(documentNumbering); }
public async Task <Product> AddProductAsync(Product product) { _uow.Products.Add(product); await _uow.SaveChangesAsync().ConfigureAwait(false); return(product); }
public async Task <CountingWay> AddCountingWayAsync(CountingWay countingWay) { _uow.CountingWays.Add(countingWay); await _uow.SaveChangesAsync().ConfigureAwait(false); return(countingWay); }
public async Task <Currency> AddCurrencyAsync(Currency currency) { _uow.Currencies.Add(currency); await _uow.SaveChangesAsync().ConfigureAwait(false); return(currency); }
public async Task <TL> AddTLAsync(TL tL) { _uow.TLs.Add(tL); await _uow.SaveChangesAsync().ConfigureAwait(false); return(tL); }
public async Task <Stock> AddStockAsync(Stock stock) { _uow.Stocks.Add(stock); await _uow.SaveChangesAsync().ConfigureAwait(false); return(stock); }
public async Task <DLType> AddDLTypeAsync(DLType dLType) { _uow.DLTypes.Add(dLType); await _uow.SaveChangesAsync().ConfigureAwait(false); return(dLType); }
public async Task <SelectAgent> AddSelectAgentAsync(SelectAgent selectAgent) { _uow.SelectAgents.Add(selectAgent); await _uow.SaveChangesAsync().ConfigureAwait(false); return(selectAgent); }
public async Task <ExchangeRate> AddExchangeRateAsync(ExchangeRate exchangeRate) { _uow.ExchangeRates.Add(exchangeRate); await _uow.SaveChangesAsync().ConfigureAwait(false); return(exchangeRate); }
public async Task <TreeAccount> AddTreeAccountAsync(TreeAccount treeAccount) { _uow.TreeAccounts.Add(treeAccount); await _uow.SaveChangesAsync().ConfigureAwait(false); return(treeAccount); }
public async Task <BankType> AddBankTypeAsync(BankType bankType) { _uow.BankTypes.Add(bankType); await _uow.SaveChangesAsync().ConfigureAwait(false); return(bankType); }
public async Task <Person> AddPersonAsync(Person person) { _uow.People.Add(person); await _uow.SaveChangesAsync().ConfigureAwait(false); return(person); }