This project is read-only.

Can't use route with constraints in JsAction

Aug 19, 2014 at 10:58 AM
Edited Aug 19, 2014 at 10:59 AM
I have some problems with JsAction, when I try to use it with route and constraints

        public ActionResult GetNewsItem(long newsId)
            if (Request.IsAjaxRequest())
                return Json(result, JsonRequestBehavior.AllowGet);
            return View("Home");
with this route:
                new { controller = "News", action = "GetNewsItem" },
                new { newsId = @"\d+"}
And JsAction says that he couldn't load resource, because there is internal server error.

Is it my mistake or something else?
Aug 24, 2014 at 2:37 PM
Thank you for writing,
I am sorry but the project is not supported anymore and I have tools to reproduce the issue neither. Sorry for that.
You may want to download the source code and check it by yourself.