public ActionResult Index(AuthModels.Index model) { if (ModelState.IsValid) { var model2 = new AuthModels.Network { State = model.State, Hostname = Request.UserHostAddress }; return(View("Network", model2)); } return(View(model)); }
public ActionResult Index(string client_id, string response_type, string state) { if (client_id != "alexa-skill") { throw new HttpException(500, "Invalid client id"); } if (response_type != "token") { throw new HttpException(500, "Invalid response type"); } if (string.IsNullOrEmpty(state)) { throw new HttpException(500, "Invalid state"); } var model = new AuthModels.Index() { State = state }; return(View(model)); }