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)); }
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)); }