If I have an SQL statement like,
SELECT Count(id) as TotalRows, transaction_date
FROM Accounts
Group By transaction_date
What do I use as a return type an display it in my View using Dapper Dot Net? I tried using ViewData["mydata"] and I tried using List<dynamic>, but I could not iterate because the return type is IActionResult and as such does not have an Enumerator. I can't cast it (I don't know how to) to a specific type with IEnumerable because there is not custom type like (Accounts, Person, etc.). None of these have a property for enumerating.
I would like to not use Linq unless it is necessary.