mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-15 10:04:44 +00:00
Update doc comments in Features.Breweries source (#279)
This commit is contained in:
@@ -5,11 +5,15 @@ using MediatR;
|
||||
|
||||
namespace Features.Breweries.Queries.GetAllBreweryLocations;
|
||||
|
||||
/// <summary>Handles <see cref="GetAllBreweryLocationsQuery" /> by retrieving all located brewery posts.</summary>
|
||||
/// <summary>
|
||||
/// Handles queries for brewery posts with locations.
|
||||
/// </summary>
|
||||
public class GetAllBreweryLocationsHandler(IBreweryRepository repository)
|
||||
: IRequestHandler<GetAllBreweryLocationsQuery, IEnumerable<BreweryWithLocationDto>>
|
||||
{
|
||||
/// <summary>Retrieves every brewery post that has a set location.</summary>
|
||||
/// <summary>
|
||||
/// Retrieves and maps every brewery post that has a location.
|
||||
/// </summary>
|
||||
public async Task<IEnumerable<BreweryWithLocationDto>> Handle(
|
||||
GetAllBreweryLocationsQuery request,
|
||||
CancellationToken cancellationToken
|
||||
|
||||
@@ -4,7 +4,6 @@ using MediatR;
|
||||
namespace Features.Breweries.Queries.GetAllBreweryLocations;
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves all brewery posts that have a set location. Bound directly from
|
||||
/// <c>GET /api/brewery/locations</c>.
|
||||
/// Requests brewery posts that include a location.
|
||||
/// </summary>
|
||||
public record GetAllBreweryLocationsQuery : IRequest<IEnumerable<BreweryWithLocationDto>>;
|
||||
|
||||
Reference in New Issue
Block a user