Exemple #1
0
        public ActionResult Index(BlockModel currentBlockModel)
        {
            var model = _builder.Build(currentBlockModel);

            return(PartialView("~/Views/Block/Banners.cshtml", model));
        }
Exemple #2
0
        public IViewComponentResult Invoke(BlockModel currentBlockModel)
        {
            var model = _builder.Build(currentBlockModel);

            return(View("~/Views/Blocks/Banners.cshtml", model));
        }
 public async Task <BannersBlockViewModel> BuildAsync(IServiceScope scope, BlockModel model)
 {
     return(_builder.Build(model));
 }