public async Task <IActionResult> Create([Bind("UsersId,FirstName,MiddleName,LastName,Bvn,BvnIsValidated,Email,EmailIsValidated,PhoneNumber,PhoneNumberIsValidated,AccountNumber,AccountNumberIsValidated,BankId,StateId,CreatedOn,CreatedBy")] Users users)
        {
            if (ModelState.IsValid)
            {
                _context.Add(users);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(Ok(users));
        }
        public async Task <IActionResult> Create([Bind("BvndetailsId,UserId,FirstName,MiddleName,LastName,DateOfBirth,RegistrationDate,EnrollmentBank,Email,PhoneNumber,Gender,LgaofOrigin,LgaofResidence,Nationality,PhoneNumberAlt,ResidentialAddress,StateOfOrigin,StateOfResidence,WatchListed,CreatedOn")] Bvndetails bvndetails)
        {
            if (ModelState.IsValid)
            {
                _context.Add(bvndetails);
                await _context.SaveChangesAsync();

                return(Ok(true));
            }
            //ViewData["UserId"] = new SelectList(_context.Users, "UsersId", "AccountNumber", bvndetails.UserId);
            return(Ok(false));
        }
        public async Task <IActionResult> Create([Bind("EmploymentDetailsId,UsersId,OrganizationName,OrganizationAddress,OrganizationType,PositionHeld,EmploymentType,EmploymentStatus,EmploymentDate,LastDayAtJob,Stateid,CreatedOn")] EmploymentDetails employmentDetails)
        {
            if (ModelState.IsValid)
            {
                _context.Add(employmentDetails);
                await _context.SaveChangesAsync();

                return(Ok(true));
            }
            //ViewData["UsersId"] = new SelectList(_context.Users, "UsersId", "AccountNumber", employmentDetails.UsersId);
            return(Ok(false));
        }