Make changes like this:
[HttpGet]
public async Task<ActionResult<IEnumerable<CarMakes>>> GetCars()
{
var x = from f in _context.CarMakes
group f by f.Make into g
select new { Make = g.Key };
var result = await x.ToListAsync();
return Ok(result);
}