public ActionResult Index() { var blueprints = _elementBlueprintService.GetBlueprints().ToArray(); var viewModel = new BlueprintsIndexViewModel { Blueprints = blueprints }; return(View(viewModel)); }
public ActionResult Index() { if (!Services.Authorizer.Authorize(Permissions.ManageLayouts, T("Not authorized to manage layouts."))) { return(new HttpUnauthorizedResult()); } var blueprints = _elementBlueprintService.GetBlueprints().ToArray(); var viewModel = new BlueprintsIndexViewModel { Blueprints = blueprints }; return(View(viewModel)); }