示例#1
0
 public ActionResult ProductGrid()
 {
     CatalogService.CatalogServiceClient client= new CatalogService.CatalogServiceClient();
     List<BookCategory> booksByCategory =  client.GetAllBooksGroupedByCategory();
     List<CategoryViewModel> categoryViewModelList = booksByCategory.Select(bc => new CategoryViewModelBuilder(bc).Build()).ToList();
     return View("_ProductGrid",categoryViewModelList);
 }
 public CatalogProvider(ISecretsStorageService secretsService) : base(secretsService)
 {
     Client = new CatalogService.CatalogServiceClient(Channel);
 }