Example #1
0
        public async Task <IActionResult> Create([Bind("bank_id,bank_code")] BankModel BankModel)
        {
            if (ModelState.IsValid)
            {
                _context.Add(BankModel);
                await _context.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(BankModel));
        }
Example #2
0
        public async Task <IActionResult> Create([Bind("Id,TypeCard")] cctypeModel cctypeModel)
        {
            if (ModelState.IsValid)
            {
                _context.Add(cctypeModel);
                await _context.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(cctypeModel));
        }