title: Async / await not working " string does not contain a defination fot GetAwaiter " and no extension
body: <p>I am making Android App in Visual Studio Xamarin, in App's Login screen when the connection is made with DataBase through Web Services for verification of password I want to show a progressDialog until connection is made.  </p>
  
  <p>Here's my code on the onclient side:</p>
  
  <pre><code>private string login()
  {
      string x = null;
      var progress = ProgressDialog.Show(this, "waiting", "Loading");
      progress.SetProgressStyle(ProgressDialogStyle.Spinner);
      new Thread(new ThreadStart(delegate
      {
          RunOnUiThread(async () =&gt;
          {
              x = await services.Verification("abc", "xyz");
              progress.Dismiss();
          });
       })).Start();
  
      return x;
  }
  </code></pre>
  
  <p>On the server side:  </p>
  
  <pre><code>public string Verification(string userName, string password)
  {
      SqlConnection conn = new SqlConnection(@"");
      conn.Open();
      string query = "select category from ACCOUNTS where loginId = '" + userName + "' and pasword= '" + password + "'";
      SqlCommand cmd = new SqlCommand(query);
      cmd.Connection = conn;
      string catagory = null;
      SqlDataReader account = cmd.ExecuteReader();
  
      if (account.HasRows)
      {
          if (account.Read())
          {
              catagory = account[0].ToString();
          }
      }
      conn.Close();
  
      return catagory;
  }
  </code></pre>
  
  <p>Here's the error in login() function on line <code>x = await services.Verification("abc", "xyz");</code> and it says: </p>
  
  <pre><code> 'String' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'String' could be found (are you missing a using directive or an assembly reference?)
  </code></pre>