79247286

Date: 2024-12-03 11:02:03
Score: 0.5
Natty:
Report link

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);
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ali Mumtaz