Using function with return type Task<T>...c# : ASP.NET MVC 5/ C# .NEt 4.6.1

I had a function that did the following:

    public class UserClass
       {
       public static CurrentUserData GetUserInfo()
        {
            CurrentUserData ui;
                ui = GetUserData();
            return ui;
       }
       }

My CurrentUserData object is as follows:

       public class CurrentUserData 
       {
           public bool ReadOnly{get;set;}
      }

In my controller, I call my method and can see the ReadOnly property fine:

        var user = UserClass.GetUserInfo();
        if (user.ReadOnly)
     {
          ////code to execute
        }

I had to add an async call to my function, and now it looks likes this (I omitted code for brevity):

      public static Task<CurrentUserData > GetUserInfo()
        {
            Task<CurrentUserData > ui;
                ui = GetUserData();
              HttpResponseMessage response = await httpClient.SendAsync(request);
            return ui;
       }
    

Notice the Task<T> I had to add. But when I call the method in my controller like before, I get the error:


     Error	CS1061	'Task<CurrentUserData >' does not contain a definition for 
     'ReadOnly' and no extension method 'ReadOnly' accepting a first argument of 
     type 'Task<CurrentUserData >' could be found (are you missing a using directive or 
     an assembly reference?)

What do I need to change so when any class calls my new Task<CurrentUserData > method, it will see all the properties of the object wrapped in Task<CurrentUserData >?

Thanks
            