//public async Task<bool> RegisterPlayerOnPositionAsync(Position position)
        //{
        //    SelectedPosition = position;
        //    //IsBusy = true;
        //    //var positionsServices = new PositionsServices();
        //    //bool success = await positionsServices.RegisterPlayerOnPositionAsync(SelectedBrigade.Id, position);
        //    //await Navigation.PopAsync();
        //    //IsBusy = false;
        //    //return success;
        //}

        public async Task <bool> UnregisterPlayerFromPositionAsync(Position position)
        {
            IsBusy = true;
            var  positionsServices = new PositionsServices();
            bool success           = await positionsServices.UnregisterPlayerFromPositionAsync(SelectedBrigade.Id, position);

            await Navigation.PopAsync();

            IsBusy = false;
            return(success);
        }
        public static async Task <ObservableCollection <Position> > InitializeAllPositionsAsync()
        {
            var positionsServices = new PositionsServices();

            return(await positionsServices.GetAllComponentsAsync());
        }