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); }