title: How to get returned value of async Task<string> method name()?
body: <p>I'm trying to get the return string of my method but the problem is I don't know how can I get the return value from <code>public async Task&lt;string&gt; Login(string username, string password, string site)</code>.</p>
  
  <p>This is my codes from Program.cs</p>
  
  <pre><code>static void Main(string[] args)
  {
      var username = "Leonel.Sarmiento";
      var password = "welcome";
      var site = "QADBSite";
      var url = "na1.sabacloud.com";
      ConsoleCustomizer.Spinner Spinner = new ConsoleCustomizer.Spinner("+", "x", "+", "x");
      ConsoleCustomizer.TypeWriter TypeWriter = new ConsoleCustomizer.TypeWriter(15, 150);
      ConsoleCustomizer.Alerts Alerts = new ConsoleCustomizer.Alerts();
      Alerts.Write("Information", "HOST URL:", null);
      TypeWriter.WriteLine(@"http:\\"+url);
      Alerts.Write("Information", "USERNAME:", null);
      TypeWriter.WriteLine(username);
      Alerts.Write("Information", "PASSWORD:", null);
      for (var i = 0; i &lt; password.Length; i++)
      {
          TypeWriter.Write("*");
      }
      Console.WriteLine("");
      SabaController saba = new SabaController(url);
      //var certificate = saba.Login(username, password, site).Wait();
      saba.Login(username, password, site).Wait();
      Console.Read();
  }
  </code></pre>
  
  <p>This is my codes from Saba Controller.cs</p>
  
  <pre><code>public async Task&lt;string&gt; Login(string username, string password, string site)
  {
      using(var client = new HttpClient())
      {
          client.BaseAddress = new Uri("https://" + HostURL + "/");
          client.DefaultRequestHeaders.Accept.Clear();
          client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
          client.DefaultRequestHeaders.Add("user", username);
          client.DefaultRequestHeaders.Add("password", password);
          client.DefaultRequestHeaders.Add("site", site);
          //HTTP GET: saba/api/login
          HttpResponseMessage response = await client.GetAsync("Saba/api/login");
          if (response.IsSuccessStatusCode)
          {
              SabaModel saba = await response.Content.ReadAsAsync&lt;SabaModel&gt;();
              SabaCertificate = saba.Certificate;
          }
      }
      return SabaCertificate;
  }
  </code></pre>