public async Task <IActionResult> update([FromForm] int key, [FromForm] string values)
        {
            try
            {
                Producto prmP = new Producto();
                JsonConvert.PopulateObject(values, prmP);
                var response = await invenotryServices.updateProduct(key, prmP);

                return(Ok(response));
            }
            catch (Exception ex)
            {
                _logger.LogWarning(LogEvents.ExeptionError, ex, "Error Exception");
                return(BadRequest(ex.ToString()));
            }
        }