I have the method below which I am using to fetch data
public async Task<Mydata> GetMyData(int myId)
{
return await DbContext.Data
.Where(x => x.ParentId == myId || x.ParentId == null) &&
x.status != FileStatus.Testing && x.status != FileStatus.Commanding);
}
All I get is the error below. Is this wrong?
ArgumentNullException
'IQueryable<File>'does not contain a definition for 'GetAwaiter' and no accessible extension method 'GetAwaiter' accepting a first argument of type'IQueryable<Mydata>'could be found (are you missing a using directive or an assembly reference?)
How can i correct this?