c# - How to pass a URL as a query string parameter in MVC -
does know how pass url query string parameter , url in httpget method parameter ?
thanks answers. got sorted. please refer fix below:
[route("api/[controller]")] public class urlcontroller : controller { [httpget("{*longurl}")] public string shorturl(string longurl) { var test = longurl + request.querystring; return jsonconvert.serializeobject(geturltoken(test)); }
Comments
Post a Comment