public void AddRoles() { Roles role = new Roles(); role.Key = "admin"; role.Name = "系统管理员"; role.OwnerId = Guid.NewGuid(); role.Comments = "系统超级管理员"; Assert.IsTrue(RoleHandler.AddRole(role)); }
public bool AddRole([FromBody] Roles role) { return(RoleHandler.AddRole(role)); }