/*
         * Enter the client to the appropriate queue
         */
        private async void EnterToQueueActionsAsync(ServiceType service)
        {
            try
            {
                EnqueuePosition enqueuePosition = new EnqueuePosition()
                {
                    ServiceType = service, UserID = Model.CustomerID
                };
                Model.LineNumber = await clientHttp.RegisterToQueueAsync(enqueuePosition);

                Model.QueueType = service;

                timer.Stop();
                eventAggregator.GetEvent <ChangeViewEvent>().Publish(ViewType.display);  // switch the current view to display
                eventAggregator.GetEvent <SendPatientEvent>().Publish(Model);            // send it the current model
            }
            catch (HttpRequestException e)
            {
                views.ShowErrorDialog(e.Message);
                timer.Stop();
                eventAggregator.GetEvent <ChangeViewEvent>().Publish(ViewType.welcome);  // switch the current view to display
            }
        }
        /*
         * Simulate card swiping and connecting to the user api to check on the guid of the customer
         */
        private async void ExecuteSendValidateCommandAsync()
        {
            Customer.ClientCard = new CardInfo()
            {
                CardNumber = SelectedUser
            };
            try
            {
                CustomerIdentification customer = await httpActions.ValidateCustomerAsync(Customer.ClientCard);

                Customer.CustomerID = customer.CustomerId;
                _ea?.GetEvent <ChangeViewEvent>().Publish(ViewType.select);
                _ea?.GetEvent <SendPatientEvent>().Publish(Customer);
            }
            catch (HttpRequestException e)
            {
                views.ShowErrorDialog(e.Message);
            }
        }