public IViewComponentResult Invoke(BlockModel currentBlockModel)
        {
            var model = _builder.Build(currentBlockModel);

            return(View("~/Views/Blocks/Brands.cshtml", model));
        }
Esempio n. 2
0
 public async Task <BrandsBlockViewModel> BuildAsync(IServiceScope scope, BlockModel model)
 {
     return(_builder.Build(model));
 }
        public ActionResult Index(BlockModel currentBlockModel)
        {
            var model = _builder.Build(currentBlockModel);

            return(PartialView("~/Views/Block/Brands.cshtml", model));
        }