示例#1
0
        public async Task <IActionResult> Alterar(Guid id, ClienteModel clienteModel)
        {
            var retorno = await _clienteApplication.Alterar(id, clienteModel);

            if (retorno.Valid)
            {
                return(Ok(retorno.Object));
            }
            return(BadRequest(retorno.Notifications));
        }