I have two routes I'm trying to create to use like
www.mysite.com/Rate/Student/Event/123
www.mysite.com/Rate/Teacher/Event/1234
routes.MapRoute(
name: "Rate",
url: "Rate/Student/Event/{id}"
);
routes.MapRoute(
name: "Rate",
url: "Rate/Teacher/Event/{id}"
);
How do I construct the action methods?
Here is what I have in my Rate controller
public ActionResult Student(int id)
{
return View();
}
public ActionResult Teacher(int id)
{
return View();
}