public async Task <IActionResult> Connect(CheckIdentityQuery model) { if (model.SecurityCode == "123") { Customer customer = await _mediator.Send(new CheckIdentityQuery { Email = model.Email }); if (customer != null) { ConnectToIdentityViewModel viewModel = new ConnectToIdentityViewModel(customer); return(View(viewModel)); } else { return(RedirectToAction("Identity")); } } else { return(RedirectToAction("Identity")); } }
public IActionResult Identity() { CheckIdentityQuery model = new CheckIdentityQuery(); return(View(model)); }