public MainModule() { Get["/"] = p => { var mainInteractors = new MainInteractors(); var eiskarte = mainInteractors.Start(); return View["main.html", eiskarte]; }; }
public BestellenModule() { this.RequiresAuthentication(); Post["/bestellen"] = p => { var mainInteractors = new MainInteractors(); var bestellung = Map(Request.Form); var bestelltext = mainInteractors.Bestellen(bestellung); return View["bestaetigung.html", bestelltext]; }; }