public DC_Message AddUpdatePlaces(MDMSVC.DC_GooglePlaceNearByWithAccoID _lst) { object result = null; ServiceConnection.MDMSvcProxy.PostData(ConfigurationManager.AppSettings["AddUpldate_Places"], _lst, typeof(MDMSVC.DC_GooglePlaceNearByWithAccoID), typeof(DC_Message), out result); return(result as DC_Message); }
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)); }