title: where I need to set my await compared to the code
body: <p>I can not really find out where along in the code I need to set my "await" so it run my code through to enable users to log in to the site.</p>
  
  <p>Where the problem lies is where should I set my "await" when the user has success by log in to the site.</p>
  
  <p>Error:</p>
  
  <blockquote>
    <p>'UserLogin' does not contain a definition for 'GetAwaiter' and no
    extension method 'GetAwaiter' accepting a first argument of type
    'UserLogin' could be found (are you missing a using directive or an
    assembly reference?)</p>
  </blockquote>
  
  <pre><code>[HttpPost]
      [AllowAnonymous]
      [ValidateAntiForgeryToken]
      public async Task&lt;ActionResult&gt; login(UserLogin UserValue)
      {
          //Makes database access
          DataLinqDB db = new DataLinqDB();
  
          if (ModelState.IsValid)
          {
              //Is this email and also downloads "salt" from the mail.
              var email = db.brugeres.FirstOrDefault(i =&gt; i.brugernavn == UserValue.Brugernavn);
              if (email != null)
              {
                  //Makes password on the SHA256
                  var pass = HelperClass.Helper.Hash.getHashSha256(UserValue.Brugernavn);
  
                  //Checker up for a username and password match up with what you have written in. 
                  //Checks also while on the salt as the few from the past to the fit with "email"
                  var User = db.brugeres.FirstOrDefault(u =&gt; u.brugernavn == UserValue.Brugernavn &amp;&amp; u.adgangskode == pass &amp;&amp; u.salt == email.salt);
                  if (User != null)
                  {
                      .... code her ....
                      //Sending me over to the front. (the closed portion.)
  
                      await UserValue; //Error here!!!
                      return RedirectToAction("index");
  
                  }
                  else
                  {
                      //Error - Invalid username and password do not match.
                      ModelState.AddModelError("", "Unfortunately, it is wrong ..");
                  }
              }
              else
              {
                  //Error - Invalid username do not match.
                  ModelState.AddModelError("", "We could not find you!");
              }
          }
          return View();
      }
  </code></pre>
  
  <p>There where the fault lies here.</p>
  
  <pre><code>//Sending me over to the front. (the closed portion.)
  await UserValue;//Error here!
  return RedirectToAction("index");
  </code></pre>