public async Task <bool> AddBache(double latitude, double longitude, Stream photo) { try { var imageurl = await App.Authenticator.UploadImage(photo); var coffee = new Bache { Latitude = latitude, Longitude = longitude, PhotoUrl = imageurl, DateUtc = DateTime.UtcNow, }; await bacheTable.InsertAsync(coffee); await SyncBaches(); return(true); } catch { return(false); } }
public BachePhotoPage(Bache bache) { InitializeComponent(); _photo.Source = new UriImageSource { CacheValidity = TimeSpan.FromDays(1), CachingEnabled = true, Uri = new Uri(bache.PhotoUrl) }; }