コード例 #1
0
        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));
        }