public async Task <IActionResult> AddProduct([FromBody] productRequest productRequest)
        {
            var product = await productsService.AddProductAsync(productRequest.Name);

            var response = new ProductResponse {
                Id = product.Id, Name = product.Name
            };

            return(CreatedAtAction(nameof(GetProduct), new { id = response.Id }, response));
        }
        public async Task <IActionResult> Update([FromRoute] Guid id, [FromBody] productRequest productRequest)
        {
            var product = await productsService.GetProductAsync(id);

            if (product == null)
            {
                return(NotFound());
            }
            product.Name = productRequest.Name;
            var updateproduct = await productsService.UpdateAsync(product);

            var response = new ProductResponse {
                Id = updateproduct.Id, Name = updateproduct.Name
            };

            return(Ok(response));
        }