djfoxer.dp.notification.Core.Logic.DpLogic.ChangeStatusNotify C# (CSharp) Method

ChangeStatusNotify() private method

private ChangeStatusNotify ( string id, string method ) : Task
id string
method string
return Task
        private async Task<bool> ChangeStatusNotify(string id, string method)
        {

            HttpResponseMessage response = null;
            HttpRequestMessage request = null;

            using (var httpClient = new HttpClient())
            {
                request = new HttpRequestMessage(HttpMethod.Post, new Uri(Const.UrlNotifyRaw));
                request.Content = new HttpFormUrlEncodedContent(new[] {
                    new KeyValuePair<string, string>(method+"[]", id)
                });

                response = await httpClient.SendRequestAsync(request);
            }
            return response.StatusCode == Windows.Web.Http.HttpStatusCode.Ok;
        }