public async Task <IActionResult> Create([Bind("userID,accountID,dateCreated,accountType,balance,interest,dateInterest,imf")] Accounts accounts) { if (ModelState.IsValid) { _context.Add(accounts); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(accounts)); }
public async Task <IActionResult> Create([Bind("userID,fname,lname,dob,ssn,address,username,password")] Customers customers) { if (ModelState.IsValid) { _context.Add(customers); await _context.SaveChangesAsync(); return(RedirectToAction("Create", "Accounts", new { userId = customers.userID })); } return(View(customers)); }