Im trying to define a RouteAttribute in my Controller but the value is always hitting null. Stuff i tried:
[HttpGet] [Route("User/ChangePassword/{code:guid}")] public ActionResult ChangePassword(Guid code) { return View(); } URL: http://localhost:59635/User/ChangePassword/c809619-4451-4e60-86ca-3bf7159c6d15 Im getting this code always null, even if i put a string. Ps. The parameter is required and no optional, any ideas?
http://yoursite/user/changepassword/12345678-1234-1234-1234-123456789012