Esempio n. 1
0
        public async Task <bool> UpdateRecieptAsync(Reciept reciept)
        {
            var reciepts = await GetRecieptsAsync(Helpers.DeviceHelper.GetMunchyId());

            Reciept            retirvedReciept = reciepts.Where(r => r.Id == reciept.Id).FirstOrDefault();
            IDocumentReference document        = CrossCloudFirestore.Current.Instance.GetCollection("Reciepts").GetDocument(retirvedReciept.DoucmentId);
            await document.UpdateDataAsync(new { IsScanned = true, Text = "Tryk her for at se kvittering" });

            return(await Task.FromResult(true));
        }