Beispiel #1
0
 public HomeModule()
 {
     Get["/"] = _ =>
     {
         return(View["index.cshtml"]);
     };
     Post["/"] = _ =>
     {
         int       day          = int.Parse(Request.Form["day"]);
         double    month        = double.Parse(Request.Form["month"]);
         int       year         = int.Parse(Request.Form["year"]);
         DayOfWeek newDayOfWeek = new DayOfWeek(day, month, year);
         string    result       = newDayOfWeek.DayFinder();
         return(View["index.cshtml", result]);
     };
 }