private void update(DocDetailsPageModel obj)
 {
     Task.Run(async() =>
     {
         await UpdateView();
     });
 }
 public void UpdateAndSave(DocDetailsPageModel obj)
 {
     documents = new List <Document>();
     Task.Run(async() => {
         try
         {
             documents = await _restServices.GetDocumentsAsync();
             if (!(documents == null || documents.Count == 0))
             {
                 _documentSerives.SaveDocuments(documents);
             }
         }
         catch
         {
             _dialogServices.ShowMessage("Erreur : erreur lors de l'enregistrement du document en  cache", true);
         }
         InitGroups(tri);
     });
 }