I am currently looking at this interesting article: https://swapcode.wordpress.com/2018/05/16/episerver-block-performance-with-controller-vs-without-controller-vs-irendertemplate/
I am a bit of an episerver newbie, so while looking through our Episerver project I came across this block controller:
using System.Web.Mvc;
using BestDigital.Site.Models.Blocks;
using EPiServer.Web.Mvc;
namespace BestDigital.Site.Controllers
{
public class AboutUsGridBlockController : BlockController<AboutUsGridBlock>
{
public override ActionResult Index(AboutUsGridBlock currentBlock)
{
return PartialView(currentBlock);
}
}
}
I this is what is considered an "empty" block controller in the article? Because if I understood it correctly all this block controller is doing is handing over data to the View?