示例#1
0
        public IEnumerable<Product> GetProductByCategory([FromUri]string category)
        {
            ProductServiceClient productService = new iSnackServiceReference.ProductServiceClient();
            var productList = productService.GetByCategory(category);
            var result = ObjectMapperManager.DefaultInstance.GetMapper<List<ProductEntity>, List<Product>>().Map(productList);

            return result;
        }