Exemple #1
0
        public ReturnAllServices Atualizar(int id, [FromBody] ClientesModel dados)
        {
            ReturnAllServices retorno = new ReturnAllServices();

            try
            {
                dados.clienteid = id;
                dados.AtualizarCliente();
                retorno.Result       = true;
                retorno.ErrorMessage = string.Empty;
            }
            catch (Exception ex)
            {
                retorno.Result       = false;
                retorno.ErrorMessage = "Erro ao tentar atualizar um cliente" + ex.Message;
            }
            return(retorno);
        }