SHARE
TWEET

Untitled

a guest Jan 12th, 2017 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         [Route("{Slug:regex(^(?!account|auth|subscribe|securities|broker-companies|trades|non-trades|staff|news|management|html)[A-Za-z0-9,-]+$)}", Name = "Page", Order = 99999)]
  2.         [Route("{Culture:length(2)}/{Slug:regex(^(?!account|auth|subscribe|securities|broker-companies|trades|non-trades|staff|news|management|html)[A-Za-z0-9,-]+$)}", Name = "PageCulture", Order = 100000)]
  3.         public ActionResult Page(string Slug)
  4.         {
  5.             var Model = HomeHelpers.GetPageViewModelBySlug(Slug, this);
  6.             if (Model == null)
  7.             {
  8.                 return NotFound();
  9.             }
  10.             else
  11.             {
  12.                 return View(Model);
  13.             }
  14.         }
RAW Paste Data
Top