예제 #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);
 }
예제 #2
0
 public CatalogProvider(ISecretsStorageService secretsService) : base(secretsService)
 {
     Client = new CatalogService.CatalogServiceClient(Channel);
 }