Commit 5e3e949
committed
Refactor
Significant refactoring has been done to the `GetProfileDataAsync` method in the `ProfileService` class. The retrieval of the `user` object has been changed to include null checking and a different method for finding the user. The creation of the `claims` list now uses the `GetClaimsFromUser` method. Role claims are now added using the `Select` LINQ method and `AddRange`. The previous code for creating and populating the claims list and adding role claims has been replaced with this new approach.GetProfileDataAsync in ProfileService class1 parent eb02c0a commit 5e3e949
1 file changed
+7
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
| 20 | + | |
17 | 21 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 22 | + | |
| 23 | + | |
28 | 24 | | |
29 | 25 | | |
30 | 26 | | |
| |||
0 commit comments