public async Task <BrewViewModel> GetBrew(string productId) { var graphQlRequest = new GraphQLRequest() { Query = Queries.Brew, Variables = new { productId } }; var response = await m_client.SendQueryAsync(graphQlRequest, () => new { brew = new Brew() }); return(m_modelMapper.Mapper(response.Data.brew)); }
public async Task <BrewViewModel> GetBrew(string productId) { var brew = await JsonReader.ReadFromJson <Brew>("BrewDetail.json"); return(m_mapper.Mapper(brew)); }