コード例 #1
0
        public string SendRequestIndb(string hostName, string hostLocation, string org, string contact, string purpose, string date, string time)
        {
            JObject data = new JObject(
                new JProperty("hostName", hostName),
                new JProperty("hostLocation", hostLocation),
                new JProperty("contactNo", contact),
                new JProperty("org", org),
                new JProperty("purpose", purpose),
                new JProperty("Date", date),
                new JProperty("Time", time));
            var objectData = data.ToString();

            GetDataHelper.SaveVisitorInfo(data);
            JavaScriptSerializer js = new JavaScriptSerializer();
            var parsedData          = js.Serialize(objectData);

            return(parsedData);
        }