public async void SendConnexion() { try { lr = await SingletonRestService.RS.ConnexionDataAsync(Email, MDP); SingletonLoginResult.destroyLR(); SingletonLoginResult.LR = lr; await NavigationService.PopAsync(); } catch (NoConnectE e) { EXCEPTION = e.ExceptionMess; } catch (ConnexionE e) { EXCEPTION = e.ExceptionMess; } }
public async void SendRegister() { try { lr = await SingletonRestService.RS.RegisterDataAsync(EMAIL, FNAME, LNAME, MDP); if (lr != null) { SingletonLoginResult.destroyLR(); SingletonLoginResult.LR = lr; await NavigationService.PopAsync(); } } catch (NoConnectE e) { EXCEPTION = e.ExceptionMess; } catch (RegisterE e) { EXCEPTION = e.ExceptionMess; } }