public async Task <IActionResult> updateFactura([FromForm] int key, [FromForm] string values) { try { Factura prmP = new Factura(); JsonConvert.PopulateObject(values, prmP); var response = await salesServices.updateFactura(key, prmP); return(Ok(response)); } catch (Exception ex) { _logger.LogWarning(LogEvents.ExeptionError, ex, "Error Exception"); return(BadRequest(ex.ToString())); } }