public IActionResult Create([Bind("ID,FirstName,LastName,PersonNumber")] Member member) { bool PnumberCompare = _membersService.ComparePersonNumber(member); if (PnumberCompare == true) { TempData["fail"] = "fail"; return(View(member)); } if (ModelState.IsValid) { _membersService.Add(member); return(RedirectToAction(nameof(Index))); } return(View(member)); }