mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-14 17:54:42 +00:00
23 lines
554 B
C#
23 lines
554 B
C#
using Features.Breweries.Dtos;
|
|
using MediatR;
|
|
|
|
namespace Features.Breweries.Commands.CreateBrewery;
|
|
|
|
public record CreateBreweryLocation(
|
|
Guid CityId,
|
|
string AddressLine1,
|
|
string? AddressLine2,
|
|
string PostalCode,
|
|
byte[]? Coordinates
|
|
);
|
|
|
|
/// <summary>
|
|
/// Creates a new brewery post. Bound directly from the request body of <c>POST /api/brewery</c>.
|
|
/// </summary>
|
|
public record CreateBreweryCommand(
|
|
Guid PostedById,
|
|
string BreweryName,
|
|
string Description,
|
|
CreateBreweryLocation Location
|
|
) : IRequest<BreweryDto>;
|