public async Task <IServiceResult <int> > UpdateInfo(UpdateProductInfoInput input)
        {
            var product = await _databaseContext.Products.FindAsync(input.Id);

            if (product is null)
            {
                return(ServiceResult <int> .NotFound());
            }

            product.UpdateInfo(input.Name, input.Description);
            await _databaseContext.SaveChangesAsync();

            return(ServiceResult <int> .Ok(product.Id));
        }
 public async Task <IServiceResult <int> > Put(UpdateProductInfoInput input) => await _updateProductService.UpdateInfo(input);