Ejemplo n.º 1
0
        public async Task Update(int id)
        {
            if (IDUser != 0 && IDCompitention != 0 && Autentification_CheckBox.IsChecked)
            {
                bool verifi = false;
                if (Autentification_CheckBox.IsChecked)
                {
                    verifi = true;
                }
                else
                {
                    verifi = false;
                }

                Participation participation = new Participation
                {
                    IdParticipation      = id,
                    IdCompetentions      = IDCompitention,
                    IdUser               = IDUser,
                    IdStatusVerification = verifi
                };

                await participationService.Update(participation);

                await Navigation.PopModalAsync();
            }
            else
            {
                if (!await DisplayAlert("Ошибка", "Вы заполнили не все поля", "Заполнить", "Выйти"))
                {
                    await Navigation.PopModalAsync();
                }
            }
        }