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

                using (var controller = new AdminRoleAccessController())
                {
                    return controller.CreateOrUpdateAdminRole(role, ContextHelper.GetCurrentOperatorKey());
                }
            }
            catch (Exception ex)
            {
                throw ex.Handle( role);
            }
        }