public ActionResult Index() { if (!_orchardServices.Authorizer.Authorize(StandardPermissions.SiteOwner, T("Not allowed to schedule periodic tasks"))) { return(new HttpUnauthorizedResult()); } IndexViewModel vm = new IndexViewModel(_scheduledTaskService.GetAllTasks(), _orchardServices, _dateServices); return(View(vm)); }