mirror of
https://github.com/rudollee/LearningMVC.git
synced 2026-08-20 12:52:58 +00:00
Ch. 15 URL Routing (until 15-32)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
|
||||
namespace UrlsAndRoutes.AdditionalControllers
|
||||
{
|
||||
public class HomeController : Controller
|
||||
{
|
||||
public ActionResult Index()
|
||||
{
|
||||
ViewBag.Controller = "Addtional COntrollers - Home";
|
||||
ViewBag.Action = "Index";
|
||||
return View("ActionName");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user