コード例 #1
0
        public ActionResult EditDeletePOST(int id)
        {
            if (!Services.Authorizer.Authorize(Permissions.ManageMobileThemes, T("Cannot manage mobile themes")))
            {
                return(new HttpUnauthorizedResult());
            }

            try
            {
                _deviceGroupService.DeleteGroup(id);
                Services.Notifier.Information(T("Group was successfully deleted"));
            }
            catch (Exception)
            {
                //this.Error(exception, T("Removing group failed: {0}", exception.Message), Logger, Services.Notifier);
            }

            return(RedirectToAction("List"));
        }