public async Task <IActionResult> deleteInventario([FromForm] int key)
        {
            try
            {
                var response = await invenotryServices.deleteInventario(key);

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