AJH.CMS.Core.Data.RoleManager.Add C# (CSharp) Method

Add() public static method

public static Add ( Role role ) : int
role AJH.CMS.Core.Entities.Role
return int
        public static int Add(Role role)
        {
            Role role2 = GetRole(role.Name);
            if (role2 != null)
                throw new Exception("There is another role has the same Name, please choose another Name");

            return RoleDataMapper.Add(role);
        }