public async Task <IActionResult> Edit(int id, [Bind("Id,TransactionId,Amount,CurrencyCode,Status,TransactionDate,ImportStatus,Note,ImportDate,TransactionFileId")] TransactionImport transactionImport)
        {
            if (id != transactionImport.Id)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    await _transactionImportService.Edit(_context, transactionImport);
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!TransactionImportExists(transactionImport.Id))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            ViewData["TransactionFileId"] = new SelectList(_context.TransactionFile, "Id", "Id", transactionImport.TransactionFileId);
            return(View(transactionImport));
        }
        public async Task <IActionResult> Create([Bind("Id,TransactionId,Amount,CurrencyCode,Status,TransactionDate,ImportStatus,Note,ImportDate,TransactionFileId")] TransactionImport transactionImport)
        {
            if (ModelState.IsValid)
            {
                await _transactionImportService.Create(_context, transactionImport);

                return(RedirectToAction(nameof(Index)));
            }
            ViewData["TransactionFileId"] = new SelectList(_context.TransactionFile, "Id", "Id", transactionImport.TransactionFileId);
            return(View(transactionImport));
        }