Value not getting passed in url
     //In Controller this is what I have 
     public class AjaxController : Controller
     {

        [AcceptVerbs(new string[]{"GET"})]
        public ActionResult FindRooms(string selectedBuilding)
        {
            return Json(new { Room = "x"}, JsonRequestBehavior.AllowGet);
        }

     }

     //In Global.asax.cs I have  
     routes.MapRoute
     (
         "AjaxRoute1",
         "Ajax/FindRooms/{selectedBuilding}",
         new { controller = "Ajax", action = "FindRooms", selectedBuilding = "" }
     );


If I browse to URL  localhost/Ajax/FindRooms/SOMEBUILDING. The SOMEBUILDING is not getting passed to selectedBuilding parameter of FindRooms method. It is always null?? How can I fix this so that it works in both POST and GET?
        
Value not getting passed in url
===

     //In Controller this is what I have 
     public class AjaxController : Controller
     {

        [AcceptVerbs(new string[]{"GET"})]
        public ActionResult FindRooms(string selectedBuilding)
        {
            return Json(new { Room = "x"}, JsonRequestBehavior.AllowGet);
        }

     }

     //In Global.asax.cs I have  
     routes.MapRoute
     (
         "AjaxRoute1",
         "Ajax/FindRooms/{selectedBuilding}",
         new { controller = "Ajax", action = "FindRooms", selectedBuilding = "" }
     );


If I browse to URL  localhost/Ajax/FindRooms/SOMEBUILDING. The SOMEBUILDING is not getting passed to selectedBuilding parameter of FindRooms method. It is always null?? How can I fix this so that it works in both POST and GET?
        