private async void Photograph(object obj) { ImageSelection selection = await SelectionMode(); MediaFile file = await PictureService.ChoixImage(selection); if (file != null) { ApiClient client = new ApiClient(); image = await client.PublishImage(file); } }