I made few of my existing methods asynchronous, now the in the properties from which I am calling those methods I see errors:
Cannot implicitly convert 'System.Threading.Tasks.Task<System.Collections.Generic.List<MyProj.BLL.Property>> TO 'System.Collections.Generic.List<MyProj.BLL.Property>>
public List<Property> UserProperties
{
get
{
if (userProperties == null)
{
userProperties = GetUserProperties(UserId);
}
}
}
private async Task<List<Property>> GetUserProperties(int userId)
{
var result = await UserDAL.GetUserProperties(userid);
return result;
}