I use helper code below to get the first ID from MyTable but an error. How should this code be made accessible?
- public Task
GetLastTableItem( int id) - {
- return _db.Table
().Where(i => i.ID == id).FirstOrDefaultAsync(); - }
Then I want to display it in label. How should this be made?
- void GetLastItem(object sender, EventArgs e)
- {
- Label label = new Label();
- label.Text = bla''bla''bla.GetLastTableItem();
- }


Rijwan AnsariRank #82 · 24.2K reputationPosted Jan 28, 2021, 6:38 AM EST
yan cus129 reputationPosted Jan 28, 2021, 11:56 AM EST
> GetItemsNotDoneAsync()
yan cus129 reputationPosted Jan 30, 2021, 12:03 PM EST