Пример #1
0
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "application/json";
            var javascriptserializer = new JavaScriptSerializer();

            javascriptserializer.MaxJsonLength = Int32.MaxValue;
            string strJson        = new StreamReader(context.Request.InputStream).ReadToEnd();
            string strDecodedJson = HttpUtility.UrlDecode(strJson);
            var    CountryIdList  = JsonConvert.DeserializeObject <MDMSVC.DC_CitywithMultipleCountry_Search_RQ> (strDecodedJson);
            var    result         = masterSVc.GetCountrywiseCitiesList(CountryIdList);

            context.Response.Write(javascriptserializer.Serialize(result));
        }