private static void AddValueRestSharpAsync()
        {
            var url     = new Uri("http://localhost:13628/api/Values/");
            var request = new RestRequest(Method.POST);

            ObjectToStore value = new ObjectToStore()
            {
                Value = "Value 3 to add", Id = 3
            };
            string jsonToSend = request.JsonSerializer.Serialize(value);

            request.AddParameter("application/json", jsonToSend, ParameterType.RequestBody);
            request.RequestFormat = DataFormat.Json;

            var client   = new RestClient(url);
            var response = client.Execute(request);

            if (response.ErrorException != null)
            {
                Console.Write(response.ErrorMessage);
            }
            else if (response.StatusCode != HttpStatusCode.OK)
            {
                dynamic msg = JsonConvert.DeserializeObject(response.Content);
                Console.Write(msg.Message);
            }
            else
            {
                ReadValuesRestSharp();
            }
        }
        private static async Task AddValue()
        {
            var url = "http://localhost:13628/api/Values/";

            using (var client = new HttpClient())
            {
                var value = new ObjectToStore()
                {
                    Id = 3, Value = "value 3"
                };
                var content       = JsonConvert.SerializeObject(value);
                var stringContent = new StringContent(content, Encoding.Default, "application/json");
                var result        = await client.PostAsync(url, stringContent);

                if (result.IsSuccessStatusCode)
                {
                    await ReadValues();
                }
                else
                {
                    Console.WriteLine(result.StatusCode);
                    Console.WriteLine(result.ReasonPhrase);
                }
            }
        }