I have a Async
method that returns Boolean
value but when I am calling that function and trying to get the value as bool
, I am getting an error as:
cannot implicitly convert type 'system.threading.tasks.task bool ' to 'bool'.
Here is how I am calling my async
method:
bool IsAvailable = Helper.search(Name);
How to correct it?