Exemple #1
0
        /// <summary>
        /// Creates the or update admin permission.
        /// </summary>
        /// <param name="permission">The permission.</param>
        /// <returns>System.Nullable&lt;Guid&gt;.</returns>
        public Guid? CreateOrUpdateAdminPermission(AdminPermission permission)
        {
            try
            {
                permission.CheckNullObject("permission");

                using (var controller = new AdminPermissionAccessController())
                {
                    return controller.CreateOrUpdateAdminPermission(permission, ContextHelper.GetCurrentOperatorKey());
                }
            }
            catch (Exception ex)
            {
                throw ex.Handle( permission);
            }
        }