using Features.Breweries.Dtos; using MediatR; namespace Features.Breweries.Commands.UpdateBrewery; /// /// Location data for an existing brewery post, supplied as part of . /// public record UpdateBreweryLocation( Guid BreweryPostLocationId, Guid CityId, string AddressLine1, string? AddressLine2, string PostalCode, byte[]? Coordinates ); /// /// Updates an existing brewery post. Bound directly from the request body of PUT /api/brewery/{id}. /// A null clears the brewery's location. /// public record UpdateBreweryCommand( Guid BreweryPostId, Guid PostedById, string BreweryName, string Description, UpdateBreweryLocation? Location ) : IRequest;