コード例 #1
0
ファイル: MainModule.cs プロジェクト: slieser/sandbox2
        public MainModule() {
            Get["/"] = p => {
                var mainInteractors = new MainInteractors();
                var eiskarte = mainInteractors.Start();
                return View["main.html", eiskarte];
            };

        }
コード例 #2
0
ファイル: BestellenModule.cs プロジェクト: slieser/sandbox2
        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];
            };
        }