private bool CanAuthenticateDrinker(Person person)
 {
     var drink = person as Drinker;
     if (drink != null && drink.NonAuthDrinkerCycleGuids != null && drink.NonAuthDrinkerCycleGuids.Contains(DrinkerCycle.Guid))
         return true;
     return false;
 }
        private async void AuthDrinker(Person person)
        {
            _progressService.ShowProgress(ProgressKeys.InDebugMode);
            var drink = person as Drinker;
            if (drink != null && drink.NonAuthDrinkerCycleGuids.Contains(DrinkerCycle.Guid))
            {
                drink.NonAuthDrinkerCycleGuids.Remove(DrinkerCycle.Guid);
                drink.AuthDrinkerCycleGuids.Add(DrinkerCycle.Guid);
                DrinkerCycle.AuthBeerDrinkers.Add(drink);
                DrinkerCycle.NonAuthBeerDrinkers.Remove(drink);

                RaisePropertyChanged(() => SortedPersons);
                await _drinkerCycleRepository.AuthenticateUser(DrinkerCycle.Name, drink.Guid);
            }

            _progressService.HideProgress(ProgressKeys.InDebugMode);
        }
        private async void RemoveDrinker(Person person)
        {
            _progressService.ShowProgress(ProgressKeys.InDebugMode);
            var drink = person as Drinker;
            if (drink != null)
            {
                if (DrinkerCycle.AuthBeerDrinkers.Contains(person))
                    DrinkerCycle.AuthBeerDrinkers.Remove(person);
                else if (DrinkerCycle.NonAuthBeerDrinkers.Contains(person))
                    DrinkerCycle.NonAuthBeerDrinkers.Remove(person);

                await _drinkerCycleRepository.RemoveUser(DrinkerCycle.Name, person.Guid);
                await SimpleIoc.Default.GetInstance<MainViewModel>().RefreshCycles();

                RaisePropertyChanged(() => SortedPersons);
                RaisePropertyChanged(() => DrinkerCycle);
            }

            _progressService.HideProgress(ProgressKeys.InDebugMode);
        }
 private bool CanRemoveDrinker(Person person)
 {
     var drink = person as Drinker;
     if (drink != null)
         return true;
     return false;
 }