コード例 #1
0
        public async Task <IActionResult> update([FromForm] int key, [FromForm] string values)
        {
            try
            {
                Cliente prmP = new Cliente();
                JsonConvert.PopulateObject(values, prmP);
                var response = await salesServices.updateCliente(key, prmP);

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