public ActionResult SetDescriptionPost(SetDescriptionPostInputModel inputModel)
 {
     if (!_authorizer.Authorize(Permissions.EditContent, T("Not authorized to manage versions.")))
     {
         return new HttpUnauthorizedResult();
     }
     if (!ModelState.IsValid)
     {
         SetDescriptionViewModel viewModel = new SetDescriptionViewModel(inputModel);
         return View("SetDescription", viewModel);
     }
     _versionManagerWorkerService.SetDescriptionPost(inputModel);
     return RedirectToAction("List", new {id = inputModel.ContentItemId});
 }
        public SetDescriptionViewModel SetDescription(int id, int versionId)
        {
            VersionManagerRecord existingInfo =
                _versionManagerInfoDataService.VersionManagerRecords.FirstOrDefault(
                    r => r.ContentItemId == id && r.ContentItemVersionId == versionId);

            VersionManagerRecord versionManagerRecord = new VersionManagerRecord();
            if (existingInfo != null)
            {
                versionManagerRecord.Description = existingInfo.Description;
            }
            versionManagerRecord.ContentItemId = id;
            versionManagerRecord.ContentItemVersionId = versionId;

            SetDescriptionViewModel viewModel = new SetDescriptionViewModel
            {
                ContentItemId = versionManagerRecord.ContentItemId,
                ContentItemVersionId = versionManagerRecord.ContentItemVersionId,
                Description = versionManagerRecord.Description,
                Id = versionManagerRecord.Id
            };

            return viewModel;
        }