2021-07-13 09:44:12 +10:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Web;
|
|
|
|
|
using System.Web.Mvc;
|
|
|
|
|
|
|
|
|
|
namespace PartyInvites.Controllers
|
|
|
|
|
{
|
|
|
|
|
public class HomeController : Controller
|
|
|
|
|
{
|
2021-07-13 23:42:07 +10:00
|
|
|
|
public ActionResult Index()
|
2021-07-13 09:44:12 +10:00
|
|
|
|
{
|
2021-07-13 23:51:02 +10:00
|
|
|
|
int hour = DateTime.Now.Hour;
|
|
|
|
|
ViewBag.Greeting = hour < 12 ? "Good morning" : "Good afternoon";
|
2021-07-13 23:42:07 +10:00
|
|
|
|
return View();
|
2021-07-13 09:44:12 +10:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ActionResult About()
|
|
|
|
|
{
|
|
|
|
|
ViewBag.Message = "Your application description page.";
|
|
|
|
|
return View();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ActionResult Contact()
|
|
|
|
|
{
|
|
|
|
|
ViewBag.Message = "Your contact page.";
|
|
|
|
|
return View();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|