Exemple #1
0
        public async void AcceptRequest(object sender, EventArgs e)
        {
            string sid = await App.Authenticator.GetUserId();

            req.Accepted = "True";
            await tableManager.SaveRequestAsync(req);

            reqItem.Borrowed = true;
            await tableManager.SaveBoardgamesAsync(reqItem);

            var chat = new Chat {
                Lender = sid, Borrower = profOwner.UserId
            };

            await AddItem(chat);

            await Navigation.PopModalAsync();
        }