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