35 lines
786 B
C#
35 lines
786 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.Mvc;
|
|
|
|
namespace PartyInvites.Controllers
|
|
{
|
|
public class HomeController : Controller
|
|
{
|
|
public ActionResult Index()
|
|
{
|
|
int hour = DateTime.Now.Hour;
|
|
ViewBag.Greeting = hour < 12 ? "Good morning" : "Good afternoon";
|
|
return View();
|
|
}
|
|
|
|
public ActionResult About()
|
|
{
|
|
ViewBag.Message = "Your application description page.";
|
|
return View();
|
|
}
|
|
|
|
public ActionResult Contact()
|
|
{
|
|
ViewBag.Message = "Your contact page.";
|
|
return View();
|
|
}
|
|
|
|
public ActionResult RsvpForm()
|
|
{
|
|
return View();
|
|
}
|
|
}
|
|
} |