I get compile time error:"Products does not contain a definition for GetAwaiter " with the following code. I could not figure out why , Please somebody help me!! Thanks!!
public async Task<IActionResult> Edit(int? id)
{
if (id == null)
{
return NotFound();
}
ProductsVM.Products = await _db.Products.Include(m => m.SpecialTags).Include(m => m.ProductTypes).SingleOrDefault(m => m.Id == id);
if (ProductsVM.Products == null)
{
return NotFound();
}
return View(ProductsVM);
}