using Features.Locations.Repository; using MediatR; namespace Features.Locations.Commands.GetOrCreateCity; /// Handles by delegating to . public class GetOrCreateCityHandler(ILocationRepository repository) : IRequestHandler { public Task Handle(GetOrCreateCityCommand request, CancellationToken cancellationToken) => repository.GetOrCreateCityIdAsync(request.City); }