示例#1
0
 // GET api/product
 public IList<Product> Get()
 {
     ProductServiceClient productService = new iSnackServiceReference.ProductServiceClient();
     var productList = productService.GetAll();
     var result = ObjectMapperManager.DefaultInstance.GetMapper<List<ProductEntity>, List<Product>>().Map(productList);
     return result;
 }