public async Task SaveTrustedSourceAsync() { _MasterRepo.ShowLoading(); await addTrustedSourceRepo.SaveTrustedSourceAsync(InputObject.SourceDetail); var storageModel = _selfieRepo.GetStoragePictureModelForSelfie( InputObject.SourceDetail.ContactPicture.Selfie, InputObject.SourceDetail.UserID); await _selfieRepo.StoreSelfieAsync(storageModel); await addTrustedSourceRepo.UpdateMasterWithTrustedSourceAsync(InputObject.SourceDetail); _MasterRepo.HideLoading(); }
public void UpdateSelfie() { _Reposetory.StoreSelfieAsync(new Trunk.ViewModel.StoragePictureModel() { UserID = _MasterRepo.DataSource.User.OID, PictureStorageSASToken = _MasterRepo.DataSource.User.PictureStorageSASToken, UserPicture = InputObject.Selfie }); _MasterRepo.PushRegistrationName(); }
public async Task UpdateUserDetailAsync() { _MasterRepo.ShowLoading(); var model = _Reposetory.GetUserModelToUpdate(InputObject.UserProfile); await _RegisterRepo.SetUserRecordWithRegisterViewModelAsync(model); var storageModel = _selfieRepo.GetStoragePictureModelForSelfie( InputObject.UserProfile.UserImage.Selfie, _MasterRepo.DataSource.User.OID); await _selfieRepo.StoreSelfieAsync(storageModel); await _Reposetory.SaveUserAsync(_Reposetory.GetUserContactModelFromMaster()); _MasterRepo.HideLoading(); _MasterRepo.PopView(); }