public async Task <ActionResult> MyPost(LocatorDto locatorDto)
        {
            var client = new HttpClient();
            await client.PostAsync("https://dominoapi.azurewebsites.net/api/Locators/Ensure/", locatorDto, new JsonMediaTypeFormatter());

            // var response = await client.PostAsync("https://localhost:44300/api/Locators/Ensure/", locatorDto, new JsonMediaTypeFormatter());

            // var json = JsonConvert.SerializeObject(locatorDto);
            // var data = new StringContent(json, Encoding.UTF8, "application/json");
            //using (var client = new HttpClient())
            //{
            //    client.BaseAddress = new Uri("http://localhost:44300/api/Locators/Ensure");
            //    try
            //    {
            //        var response = await client.PostAsync("", data);
            //        var aa = "";
            //    }
            //    catch (Exception e)
            //    {
            //        var a = "";
            //    }
            //}
            //using (var client = new HttpClient())
            //{
            //    client.BaseAddress = new Uri("http://localhost:44300/api/Locators/Ensure");

            //    //HTTP POST
            //    var response = await client.PostAsync(uri, stringContent);
            //   // var postTask = client.PostAsync
            //   // postTask.Wait();

            //    var result = postTask.Result;
            //    if (result.IsSuccessStatusCode)
            //    {
            //        return RedirectToAction("Index");
            //    }
            //}

            return(View("Collection"));
        }
 public ActionResult Index(LocatorDto locatorDto)
 {
     return(View());
 }