Another, slightly more accurate answer to Rahul's question:
public JsonResult IsValidImageUrl(string SSN) { if (string.IsNullOrEmpty(SSN)) { string parmname = Request.QueryString.AllKeys.FirstOrDefault(k => k.EndsWith(".SSN")); if (!string.IsNullOrEmpty(parmname)) { SSN = Request.QueryString[parmname]; } }
It can fly with several parameters.
Note that you will probably want to reconsider the association of the GET JSON method with everything related to SSN.
source share