예제 #1
0
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "application/json";
            string strJson        = new StreamReader(context.Request.InputStream).ReadToEnd();
            string strDecodedJson = System.Web.HttpUtility.UrlDecode(strJson);

            MDMSVC.DC_GooglePlaceNearByWithAccoID objPlaces = JsonConvert.DeserializeObject <MDMSVC.DC_GooglePlaceNearByWithAccoID>(strDecodedJson);
            objPlaces.CreatedBy = System.Web.HttpContext.Current.User.Identity.Name;
            var res = Acco.AddUpdatePlaces(objPlaces);

            context.Response.Write(new JavaScriptSerializer().Serialize(res));
        }