Esempio n. 1
0
        /// -----------------------------------------------------------------------------
        /// <summary>
        /// Adds a Role Group
        /// </summary>
        /// <param name="objRoleGroupInfo">The RoleGroup to Add</param>
        /// <returns>The Id of the new role</returns>
        /// <history>
        ///     [cnurse]	01/03/2006  Created
        /// </history>
        /// -----------------------------------------------------------------------------
        public static int AddRoleGroup(RoleGroupInfo objRoleGroupInfo)
        {
            var objEventLog = new EventLogController();

            objEventLog.AddLog(objRoleGroupInfo, PortalController.GetCurrentPortalSettings(), UserController.GetCurrentUserInfo().UserID, "", EventLogController.EventLogType.USER_ROLE_CREATED);
            return(provider.CreateRoleGroup(objRoleGroupInfo));
        }
Esempio n. 2
0
        /// -----------------------------------------------------------------------------
        /// <summary>
        /// Adds a Role Group.
        /// </summary>
        /// <param name="objRoleGroupInfo">The RoleGroup to Add.</param>
        /// <returns>The Id of the new role.</returns>
        /// -----------------------------------------------------------------------------
        public static int AddRoleGroup(RoleGroupInfo objRoleGroupInfo)
        {
            var id = provider.CreateRoleGroup(objRoleGroupInfo);

            EventLogController.Instance.AddLog(objRoleGroupInfo, PortalController.Instance.GetCurrentPortalSettings(),
                                               UserController.Instance.GetCurrentUserInfo().UserID, string.Empty, EventLogController.EventLogType.USER_ROLE_CREATED);
            return(id);
        }
Esempio n. 3
0
 /// <summary>
 /// Adds a Role Group
 /// </summary>
 /// <param name="objRoleGroupInfo">The RoleGroup to Add</param>
 /// <returns>The Id of the new role</returns>
 public static int AddRoleGroup(RoleGroupInfo objRoleGroupInfo)
 {
     return(provider.CreateRoleGroup(objRoleGroupInfo));
 }