Пример #1
0
        public ReturnAllServices RegistrarCliente([FromBody] ClientesModel dados)
        {
            ReturnAllServices retorno = new ReturnAllServices();

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