mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-15 18:14:44 +00:00
Add BeerStyle entity and related properties; refactor BreweryDto to remove BeerPosts
This commit is contained in:
@@ -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
|
||||
)),
|
||||
]
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user