public async Task <IActionResult> Create(CitizensRequest citizenRequest) { if (citizenRequest == null) { TempData["EmptyForm"] = "Cannot submit an empty form."; return(RedirectToAction("Create")); } if (!_citizenService.IsExist(citizenRequest.BVN)) { // TODO: Add insert logic here var createdUser = await _citizenService.CreateAsync(citizenRequest); if (createdUser == null) { } TempData["CreatedSuccess"] = "Congratulations your application was succesfull your National Identification number wil be sent to you shortly."; return(RedirectToAction("Index")); } else { TempData["ExistingUser"] = "******"; return(RedirectToAction("Index")); } }