public HomeModule() { Get["/"] = _ => { PingPongGenerator.DeleteAll(); return(View["index.cshtml"]); }; Post["/ping_pong"] = _ => { List <string> ListResult = PingPongGenerator.GenerateList(Request.Form["numInput"]); return(View["ping_pong.cshtml", ListResult]); }; }
public void Dispose() { PingPongGenerator.DeleteAll(); }