public async Task <IActionResult> Edit(int id, [Bind("PersonId,PersonName,Sex,DateOfBirth,IdcardNumber,Mobile,Email,PersonNote")] CcdPerson ccdPerson)
        {
            if (id != ccdPerson.PersonId)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(ccdPerson);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!CcdPersonExists(ccdPerson.PersonId))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(PartialView("~/Areas/CreditCard/Views/CcdPerson/CreateEdit.cshtml", ccdPerson));
        }
        public async Task <IActionResult> Create([Bind("PersonId,PersonName,Sex,DateOfBirth,IdcardNumber,Mobile,Email,PersonNote")] CcdPerson ccdPerson)
        {
            if (ModelState.IsValid)
            {
                _context.Add(ccdPerson);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(PartialView("~/Areas/CreditCard/Views/CcdPerson/CreateEdit.cshtml", ccdPerson));
        }