AJH.CMS.Core.Data.RoleManager.Add C# (CSharp) Méthode

Add() public static méthode

public static Add ( Role role ) : int
role AJH.CMS.Core.Entities.Role
Résultat 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);
        }