Beispiel #1
0
        public async Task <ActionResult <ProductResponse> > HandleAsncy(ProductRequest request)
        {
            var product = await useCase.Handle(request.ToProduct());

            return(ProductResponse.FromProduct(product));
        }
Beispiel #2
0
        public async Task <ActionResult <ProductResponse> > HandleAsncy(int id, ProductRequest request)
        {
            var response = await this.useCase.Handle(request.ToProduct(id));

            return(ProductResponse.FromProduct(response));
        }