var client = new HttpClient(); var url = BASConfig.Instance.SiteSettingsModule.SyncWorkLogAppUrl; var paramlist = new List<KeyValuePair<string, string>>(); paramlist.Add(new KeyValuePair<string, string>("CompanyId", bodyId.ToString())); paramlist.Add(new KeyValuePair<string, string>("UserId", loginId.ToString())); paramlist.Add(new KeyValuePair<string, string>("year", Date.Year.ToString())); paramlist.Add(new KeyValuePair<string, string>("month", Date.Month.ToString())); paramlist.Add(new KeyValuePair<string, string>("day", Date.Day.ToString())); paramlist.Add(new KeyValuePair<string, string>("summary", content)); var result = client.PostAsync(new Uri(url), new FormUrlEncodedContent(paramlist)).Result; return result.Content.ReadAsStringAsync().Result;