public ActionResult SetPublishedVersion(int id, int versionId) { if (!_authorizer.Authorize(Permissions.EditContent, T("Not authorized to manage versions."))) { return(new HttpUnauthorizedResult()); } _versionManagerWorkerService.SetPublishedVersion(id, versionId); return(RedirectToAction("List", new { id })); }