Hi @Asjad Butt ,
From the above screenshot, we can know that the GetMembers method will return a Task<AppUser>
, instead of an int
value.
But from the above code and the error message, we can know that the GetUserWithLikes method required an Int
type parameter. So, it will meet this issue.
To solve it, you can modify the code as below:
var sourceUserId = userRepository.GetMemebers(UserId)?.Result?.SourceUserId. //Assume "SourceUserId" is your property name, you can change it to yours.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best regards,
Dillion