Пример #1
0
        public async Task <IActionResult> Create([Bind("id,AccountNumber,BenificiaryName,BankName,SWIFTCode,Amount")] DataModel dataModel)
        {
            if (ModelState.IsValid)
            {
                _context.Add(dataModel);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(dataModel));
        }