Hi, I'm trying to use this lib for creating a RESTful WS with ASP.NET MVC 3.
This the code complete code http://pastebin.com/UbrMVXmH.
This controller method:
[HttpGet, Url("{who?}")]
public JsonResult SayHello(string who)
{
return Json(new { Message = "Hello, " + who + "!" }, JsonRequestBehavior.AllowGet);
}
doesn't pass the parameter when called:
http://localhost:8080/home/sayhello/somename
who contains a blank string
Where I'm wrong?
Regards,
Giacomo
This the code complete code http://pastebin.com/UbrMVXmH.
This controller method:
[HttpGet, Url("{who?}")]
public JsonResult SayHello(string who)
{
return Json(new { Message = "Hello, " + who + "!" }, JsonRequestBehavior.AllowGet);
}
doesn't pass the parameter when called:
http://localhost:8080/home/sayhello/somename
who contains a blank string
Where I'm wrong?
Regards,
Giacomo