Skip to content

GetFood

alex-caroline edited this page Nov 9, 2018 · 2 revisions

Using FoodId

var foodMetadataRequest = new FoodMetadataRequest
{
    FoodId = Guid.Parse("d6e1c25c-45ea-00e3-575f-443582096cec")
}; 
var foodMetaDataResponse =  foodQueryServiceClient.GetFood(foodMetadataRequest);

Using UserCode

var foodMetadataRequest = new FoodMetadataRequest
{
    UserCode = "1414-2"
}; 
var foodMetadataResponse =  foodQueryServiceClient.GetFood(foodMetadataRequest);