mirror of
https://github.com/rudollee/LearningMVC.git
synced 2025-06-07 16:06:21 +00:00
23 lines
438 B
C#
23 lines
438 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.Mvc;
|
|
|
|
namespace Views.Controllers
|
|
{
|
|
public class HomeController : Controller
|
|
{
|
|
public ActionResult Index()
|
|
{
|
|
ViewBag.Message = "Hello, World";
|
|
ViewBag.Time = DateTime.Now.ToShortTimeString();
|
|
return View("DebugData");
|
|
}
|
|
|
|
public ActionResult List()
|
|
{
|
|
return View();
|
|
}
|
|
}
|
|
} |