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 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(); }