public ActionResult AccessCode(RegistrationCheck check) { RegistrationModel model = new RegistrationModel(); string pinCode = GetPin(check); DeviceRegistration deviceRegistration = model.GetRegistration(GetPin(check)); if (deviceRegistration != null) { check.ChannelUri = deviceRegistration.ChannelUri; } return RedirectToAction("Information", new { pinCode = pinCode }); }