예제 #1
0
        public void CreateNew(Rbac rbac, Options options)
        {
            string   fileName = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, options.FileName);
            RbacRole role     = rbac.ImportRole(fileName);

            Console.WriteLine();
            WriteColor(ConsoleColor.Green, "Role from " + fileName + " imported into "
                       + rbac.Name + ". The role id is:" + role.RoleId + "." + Environment.NewLine);
        }