ComManageAreaRegistration.cs 686 B

12345678910111213141516171819202122232425
  1. using System.Web.Mvc;
  2. namespace ChangFa.Machinery.WebPage.Areas.ComManage
  3. {
  4. public class ComManageAreaRegistration : AreaRegistration
  5. {
  6. public override string AreaName
  7. {
  8. get
  9. {
  10. return "ComManage";
  11. }
  12. }
  13. public override void RegisterArea(AreaRegistrationContext context)
  14. {
  15. context.MapRoute(
  16. "ComManage_default",
  17. "Com/{controller}/{action}/{id}",
  18. new { action = "Index", id = UrlParameter.Optional },
  19. new string[] { "ChangFa.Machinery.WebPage.Areas.ComManage.Controllers" }
  20. );
  21. }
  22. }
  23. }