Example #1
0
        public MainModule() {
            Get["/"] = p => {
                var mainInteractors = new MainInteractors();
                var eiskarte = mainInteractors.Start();
                return View["main.html", eiskarte];
            };

        }
Example #2
0
        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];
            };
        }