public ActionResult Access(string id)
 {
     if (!String.IsNullOrEmpty(id))
     {
         ViewBag.Title = Piranha.Resources.Settings.EditTitleExistingAccess;
         return(View(@"~/Areas/Manager/Views/Settings/Access.cshtml", AccessEditModel.GetById(new Guid(id))));
     }
     else
     {
         ViewBag.Title = Piranha.Resources.Settings.EditTitleNewAccess;
         return(View(@"~/Areas/Manager/Views/Settings/Access.cshtml", new AccessEditModel()));
     }
 }
        public ActionResult DeleteAccess(string id)
        {
            AccessEditModel am = AccessEditModel.GetById(new Guid(id));

            ViewBag.SelectedTab = "access";
            if (am.DeleteAll())
            {
                SuccessMessage(Piranha.Resources.Settings.MessageAccessDeleted);
            }
            else
            {
                ErrorMessage(Piranha.Resources.Settings.MessageAccessNotDeleted);
            }

            return(AccessList());
        }