public static async Task <IEnumerable <CustomExpandExtend> > GetCustomExpand(this DataServiceQuery <CustomExpandExtend> source, Guid objectid, HttpClient httpClient = null) { var getCustomExpandFunc = source.CreateFunctionQuery <IEnumerable <CustomExpandExtend> >("Default.getcustomexpand", false, new UriOperationParameter("objectid", objectid)); var client = httpClient ?? (getCustomExpandFunc.Context as Default.Container).GetHttpClient(true); var data = await client.GetStringAsync(getCustomExpandFunc.RequestUri); return(JsonConvert.DeserializeObject <IEnumerable <CustomExpandExtend> >(data)); }