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