Esempio n. 1
0
        public void AddRoles()
        {
            Roles role = new Roles();

            role.Key      = "admin";
            role.Name     = "系统管理员";
            role.OwnerId  = Guid.NewGuid();
            role.Comments = "系统超级管理员";

            Assert.IsTrue(RoleHandler.AddRole(role));
        }
Esempio n. 2
0
 public bool AddRole([FromBody] Roles role)
 {
     return(RoleHandler.AddRole(role));
 }