Example #1
0
        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"));
            }
        }
Example #2
0
        public IActionResult Identity()
        {
            CheckIdentityQuery model = new CheckIdentityQuery();

            return(View(model));
        }