public HomeModule() { Get["/form"] = _ => { return View["form.html"]; }; Get["/story"] = _ => { StoryVariables myStoryVariables = new StoryVariables { Name = Request.Query["Name"], Name2 = Request.Query["Name2"], Activity1 = Request.Query["Activity1"], Activity2 = Request.Query["Activity2"], Activity3 = Request.Query["Activity3"] }; return View["story.html", myStoryVariables]; }; }
public HomeModule() { Get["/"] = _ => { return View["form.html"]; }; Get["/story"] = _ => { StoryVariables myStoryVariables = new StoryVariables { Person1 = Request.Query["person1"], Person2 = Request.Query["person2"], Animal = Request.Query["animal"], Exclamation = Request.Query["exclamation"], Verb = Request.Query["verb"], Noun = Request.Query["noun"] }; return View["story.html", myStoryVariables]; }; }