public EnregistrementDocumentViewModel(INavigation navigation)
        {
            _navigation               = navigation;
            _document                 = new Document();
            TypeDocument              = new TypeDocument();
            _documentValidator        = new DocumentValidator();
            baseParametresViewModel   = new BaseParametresViewModel();
            _localNotificationService = DependencyService.Get <ILocalNotificationService>();

            AjouterDocument = new Command(async() => await AjoutDocDuDocument());

            EnregistrementCommand = new Command(async() => await EnregistrementDuDocument());
            AnnulerCommand        = new Command(async() => await Annuler());

            FetchTypeDocument();
        }
        public MiseAjourDocumentViewModel(INavigation navigation, int selectedDocumentID)
        {
            _navigation        = navigation;
            _documentValidator = new DocumentValidator();
            _document          = new Document();
            _document.Id       = selectedDocumentID;

            TypeDocument = new TypeDocument
            {
                IdTypeDocument = selectedDocumentID
            };
            baseParametresViewModel   = new BaseParametresViewModel();
            _localNotificationService = DependencyService.Get <ILocalNotificationService>();

            DeleteDocumentCommand  = new Command(async() => await DeleteDocument());
            JoindreDocumentCommand = new Command(async() => await JoindreDocument());
            ModificationCommand    = new Command(async() => await ModificationDesInfos());
            AnnulerCommand         = new Command(async() => await retourDePage());

            FetchDocumentDetailsAsync();

            FetchTypeDocument();
        }