mirror of
https://github.com/rudollee/LearningMVC.git
synced 2025-06-07 16:06:21 +00:00
25 lines
503 B
C#
25 lines
503 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.Mvc;
|
|
|
|
namespace UrlsAndRoutes.Controllers
|
|
{
|
|
public class CustomerController : Controller
|
|
{
|
|
public ActionResult Index()
|
|
{
|
|
ViewBag.Controller = "Customer";
|
|
ViewBag.Action = "Index";
|
|
return View("ActionName");
|
|
}
|
|
|
|
public ActionResult List()
|
|
{
|
|
ViewBag.Controller = "Customer";
|
|
ViewBag.Action = "List";
|
|
return View("ActionName");
|
|
}
|
|
}
|
|
} |