|
using System.Web.Mvc;
namespace MvcSlideShow.Areas.Photo
{
public class PhotoAreaRegistration : AreaRegistration
{
public override string AreaName
{
get
{
return "Photo";
}
}
public override void RegisterArea(AreaRegistrationContext context)
{
//context.MapRoute(
// "Photo_default",
// "Photo/{controller}/{action}/{id}",
// new { action = "Index", id = UrlParameter.Optional }
//);
context.MapRoute(
"myarea_default",
"Photo/{controller}/{action}/{id}",
new { action = "Index", controller = "Home", id = UrlParameter.Optional },
new[] { "MvcSlideShow.Areas.Photo.Controllers" }
);
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I have over 10 years of experience working with Microsoft technologies. I have earned my Microsoft Certified Technology Specialist (MCTS) certification. I'm a highly motivated self-starter with an aptitude for learning new skills quickly.