using ODMO.Commons.DTOs.Shop; using ODMO.Commons.Interfaces; using MediatR; namespace ODMO.Application.Separar.Commands.Create { public class CreateConsignedShopCommandHandler : IRequestHandler { private readonly IServerCommandsRepository _repository; public CreateConsignedShopCommandHandler(IServerCommandsRepository repository) { _repository = repository; } public async Task Handle(CreateConsignedShopCommand request, CancellationToken cancellationToken) { return await _repository.AddConsignedShopAsync(request.ConsignedShop); } } }