Beispiel #1
0
        public async Task <IActionResult> PostMany(ProductResource[] request)
        {
            var productsToSave = request.Select(product => product.ResourceToEntity()).ToArray();
            await _productService.AddMany(productsToSave);

            return(Ok());
        }