Add BeerStyle entity and related properties; refactor BreweryDto to remove BeerPosts

This commit is contained in:
Aaron Po
2026-08-19 20:20:42 -04:00
parent 2b2df0053f
commit 0db29f431c
8 changed files with 78 additions and 51 deletions

View File

@@ -37,16 +37,7 @@ public static class BreweryDtoMapper
AddressLine2: brewery.Location.AddressLine2,
PostalCode: brewery.Location.PostalCode,
Coordinates: brewery.Location.Coordinates
),
BeerPosts:
[
.. brewery.BeerPosts.Select(beer => new BeerPreviewDto(
BeerPostId: beer.BeerPostId,
Name: beer.Name,
ABV: beer.ABV,
IBU: beer.IBU
)),
]
)
);
}
}