public async Task<IEnumerable<WCF.ItemDetailsModel>> Get() { IEnumerable<WCF.ItemDetailsModel> query; WCF.IService1 proxy = new WCF.Service1Client(); var request = await proxy.GetItemDetailsAsync(new WCF.GetItemDetailsRequest()); query = request.GetItemDetailsResult.ToList(); proxy = null; return query; }
public async Task <IEnumerable <WCF.ItemDetailsModel> > Get() { IEnumerable <WCF.ItemDetailsModel> query; WCF.IService1 proxy = new WCF.Service1Client(); var request = await proxy.GetItemDetailsAsync(new WCF.GetItemDetailsRequest()); query = request.GetItemDetailsResult.ToList(); proxy = null; return(query); }