Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
using Grand.Business.Core.Interfaces.Checkout.Shipping;
using Grand.Business.Core.Queries.Checkout.Orders;
using Grand.Domain.Shipping;
using Grand.Mediator;
namespace Grand.Business.Checkout.Queries.Handlers.Orders;
public class GetPickupPointByIdQueryHandler : IRequestHandler<GetPickupPointById, PickupPoint>
{
private readonly IPickupPointService _pickupPointService;
public GetPickupPointByIdQueryHandler(IPickupPointService pickupPointService)
{
_pickupPointService = pickupPointService;
}
public async Task<PickupPoint> Handle(GetPickupPointById request, CancellationToken cancellationToken)
{
return await _pickupPointService.GetPickupPointById(request.Id);
}
}