/// <summary>
        /// Loads a role instance given the name.
        /// </summary>
        /// <param name="name">The case-insensitive role name.</param>
        /// <returns>The role instance, or null if the role is not found.</returns>
        public static Role LoadForRolename(string name)
        {
            int roleId = RoleDataSource.GetIdByName(name);

            return(RoleDataSource.Load(roleId));
        }
 /// <summary>
 /// Gets a value indicating whether the specified role name already exists in the role data source for the configured applicationName.
 /// </summary>
 /// <param name="roleName">The role name to check</param>
 /// <returns><b>true</b> if role already exists, <b>false</b> otherwise</returns>
 public override bool RoleExists(string roleName)
 {
     return(RoleDataSource.GetIdByName(roleName) > 0);
 }