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

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