mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-14 17:54:42 +00:00
14 lines
384 B
C#
14 lines
384 B
C#
using Features.Breweries.Repository;
|
|
using MediatR;
|
|
|
|
namespace Features.Breweries.Commands.DeleteBrewery;
|
|
|
|
public class DeleteBreweryHandler(IBreweryRepository repository)
|
|
: IRequestHandler<DeleteBreweryCommand>
|
|
{
|
|
public Task Handle(DeleteBreweryCommand request, CancellationToken cancellationToken)
|
|
{
|
|
return repository.DeleteAsync(request.BreweryPostId);
|
|
}
|
|
}
|