public async Task <FoodsListResponse> SearchByNameAsync(FoodsByNameRequest foodsByNameRequest) { var inValue = new FoodsByNameRequest1 { FoodsByNameRequest = foodsByNameRequest }; var retVal = await((IFoodQueryService)this).SearchByNameAsync(inValue); return(retVal.FoodsListResponse); }
public FoodsListResponse SearchByName(FoodsByNameRequest foodsByNameRequest) { var inValue = new FoodsByNameRequest1 { FoodsByNameRequest = foodsByNameRequest }; var retVal = ((IFoodQueryService)this).SearchByName(inValue); return(retVal.FoodsListResponse); }