title: ASP.NET MVC - "Cannot await 'method group'", and "namespace name 'ASPNETCoreWebApplication' could not be found"
body: <p>Having an issue where <code>return View(await _context.Reviews.ToListAsync);</code> gives the following error: <code>Cannot await 'method group'</code></p>
  
  <p>I'm lead to believe that to use the <code>return View(await _context.Reviews.ToListAsync);</code> statement, I need to use <code>using ASPNETCoreWebApplication.data</code> (hence my inclusion of it), but  it returns an error: <code>The type or namespace 'ASPNETCoreWebApplication' could not be found [...]</code>.</p>
  
  <p>If I remove <code>using &lt;project_name&gt;data</code>, there is the same error as above for <code>ApplicationDbContext</code> in <code>HomeController.cs</code>)</p>
  
  <p>Below is my <code>HomeController.cs</code>:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Threading.Tasks;
  using Microsoft.AspNetCore.Mvc;
  using ASPNETCoreWebApplication.Data; // "The type or namespace 'ASPNETCoreWebApplication' could not be found [...]"
  using &lt;project_name&gt;.Data;
  using Microsoft.EntityFrameworkCore;
  
  namespace &lt;project_name&gt;.Controllers
  {
      public class HomeController : Controller
      {
          private readonly ApplicationDbContext _context;
  
          public HomeController(ApplicationDbContext context)
          {
              _context = context;
          }
  
          public async Task&lt;IActionResult&gt; Reviews()
          {
              // "Cannot await 'method group'"
              return View(await _context.Reviews.ToListAsync);
          }
  
          public IActionResult Error()
          {
              return View();
          }
      }
  }
  </code></pre>
  
  <p>In case it may be relevant, here is my <code>Reviews.cs</code> Model:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Threading.Tasks;
  
  namespace &lt;project_name&gt;.Models
  {
      public class Reviews
      {
          public int Id { get; set; }
          public string Date { get; set; }
          public string Name { get; set; }
          public string Heading { get; set; }
          public string Restaurant { get; set; }
          public string Comment { get; set; }
          public int Rating { get; set; }
          public int Agree { get; set; }
          public int Disagree { get; set; }
      }
  }
  </code></pre>
  
  <p>In <code>HomeController.cs</code>, </p>