Пример #1
0
        async void init()
        {
            bool edit = declarationService.IsEdit;
            bool res  = await declarationService.ApplyDeclaration();

            if (declarationService.IsPadied)
            {
                Message = "Оплата прошла успешно!";
            }
            else if (edit)
            {
                Message = "Заявление успешно редактировано!";
            }
            else
            {
                Message = "Заявление успешно оформлено!";
            }

            if (!res)
            {
                Message = "Произошла ошибка!";
            }


            pageservice.ClearHistoryByPool(PoolIndex);
            declarationService.Clear();
        }