update 2
This commit is contained in:
@@ -5,6 +5,9 @@ using BackOffice.BFF.Application.ProductsCQ.Commands.UpdateProducts;
|
||||
using BackOffice.BFF.Application.ProductsCQ.Commands.DeleteProducts;
|
||||
using BackOffice.BFF.Application.ProductsCQ.Queries.GetProducts;
|
||||
using BackOffice.BFF.Application.ProductsCQ.Queries.GetAllProductsByFilter;
|
||||
using BackOffice.BFF.Application.ProductsCQ.Commands.AddProductImage;
|
||||
using BackOffice.BFF.Application.ProductsCQ.Queries.GetProductGallery;
|
||||
using BackOffice.BFF.Application.ProductsCQ.Commands.RemoveProductImage;
|
||||
|
||||
namespace BackOffice.BFF.WebApi.Services;
|
||||
|
||||
@@ -41,5 +44,19 @@ public class ProductsService : ProductsContract.ProductsContractBase
|
||||
{
|
||||
return await _dispatchRequestToCQRS.Handle<GetAllProductsByFilterRequest, GetAllProductsByFilterQuery, GetAllProductsByFilterResponse>(request, context);
|
||||
}
|
||||
}
|
||||
|
||||
public override async Task<AddProductImageResponse> AddProductImage(AddProductImageRequest request, ServerCallContext context)
|
||||
{
|
||||
return await _dispatchRequestToCQRS.Handle<AddProductImageRequest, AddProductImageCommand, AddProductImageResponse>(request, context);
|
||||
}
|
||||
|
||||
public override async Task<GetProductGalleryResponse> GetProductGallery(GetProductGalleryRequest request, ServerCallContext context)
|
||||
{
|
||||
return await _dispatchRequestToCQRS.Handle<GetProductGalleryRequest, GetProductGalleryQuery, GetProductGalleryResponse>(request, context);
|
||||
}
|
||||
|
||||
public override async Task<Empty> RemoveProductImage(RemoveProductImageRequest request, ServerCallContext context)
|
||||
{
|
||||
return await _dispatchRequestToCQRS.Handle<RemoveProductImageRequest, RemoveProductImageCommand>(request, context);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user