public async Task <IActionResult> Create([Bind("Adminstrator_ID,Adminstrator_username,Adminstrator_password,Adminstrator_lastname,Adminstrator_firstname")] Administrator administrator) { if (ModelState.IsValid) { _context.Add(administrator); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(administrator)); }
public async Task <IActionResult> Create([Bind("member_ID,member_lastName,member_FirstName,member_contacNo,member_email,captain_status,member_username,member_password,Adminstrator_ID")] Member member) { if (ModelState.IsValid) { _context.Add(member); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(member)); }