mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-15 10:04:44 +00:00
refactor(database): update seed pipeline to use dapper (#277)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
using Features.Locations.Repository;
|
||||
using MediatR;
|
||||
|
||||
namespace Features.Locations.Commands.CreateCountry;
|
||||
|
||||
public class CreateCountryHandler(ILocationRepository repository)
|
||||
: IRequestHandler<CreateCountryCommand, Guid>
|
||||
{
|
||||
public Task<Guid> Handle(CreateCountryCommand request, CancellationToken cancellationToken) =>
|
||||
repository.CreateCountryAsync(request.CountryName, request.IsoCode);
|
||||
}
|
||||
Reference in New Issue
Block a user