예제 #1
0
 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 }));
 }