public ActionResult ChangeDocAccess(AccessViewModel model)
        {
            if (model.NewAccess != model.OldAccess)
            {
                accessRepository.ChangeAccess(model.DocumentID, model.NewAccess, model.OldAccess);
            }

            return(RedirectToAction("GetAllDocuments"));
        }