little modifications to users

This commit is contained in:
2020-08-06 22:57:25 +02:00
parent 07f466d74b
commit d58a8702b3
11 changed files with 74 additions and 28 deletions

View File

@ -52,7 +52,7 @@ namespace UserService.DatabaseLayer.DataModels
public Node? Parent { get; set; } //Parent
public int? ParentId { get; set; }
public override string ToString() => $"[{GetType().Name}] {Id:D5} {CommonName}";
public override string ToString() => CommonName;
public int Level => Parent?.Level + 1 ?? 0;