diff --git a/src/Web/WebMVC/Controllers/CampaignsController.cs b/src/Web/WebMVC/Controllers/CampaignsController.cs new file mode 100644 index 000000000..2e749aa6a --- /dev/null +++ b/src/Web/WebMVC/Controllers/CampaignsController.cs @@ -0,0 +1,21 @@ +namespace Microsoft.eShopOnContainers.WebMVC.Controllers +{ + using Microsoft.AspNetCore.Authorization; + using Microsoft.AspNetCore.Mvc; + using Microsoft.eShopOnContainers.WebMVC.Services; + + [Authorize] + public class CampaignsController : Controller + { + private ICampaignService _campaignService; + + public CampaignsController(ICampaignService campaignService) => + _campaignService = campaignService; + + public IActionResult Index() + { + var campaignList = _campaignService.GetCampaigns(); + return View(); + } + } +} \ No newline at end of file