22 Replies
my get all function is almost same but returns true body
here's get all and the response
Do you
await
it?
Because your first result seems like you serialized a Task
As a side note, unless the teacher forbids it, I'd highly recommend using literally anything else than ADO for your database stuff. Dapper would be my recommendation if you still want to write raw SQLam I using ado rn? don't know the name exactly sorry
I believe so, yeah. Using the reader manually and all that jazz
yh it has to be async I think
Well, it is async
But are you awaiting it?
im awaiting here. does it count?
That is not the method you showed before
its service layer
It's, supposedly, this method causing issues
Now you're showing me a completely different one, that also calls a completely different one
So, which is it that produces this unexpected output?
oop wait
my bad. I edited the code
can you check again?
It seems perfectly fine
Do you await this method, then?
but the response is contains unwanted areas
I want to return only result part here
Do you, or do you not, await the method I mentioned?
isn't it await?
And when you call this method?
or should I make it like this return await new Follow
{
id = reader.GetInt32(0),
followedUsername = reader.GetString(1),
user = reader.GetString(2)
};
Is this one awaited?
Constructors cannot be asynchronous, so no, you cannot await a constructor
oh I found my mistake
thank you for your await messages