Commit f4c0493
feat: Improve customer name fallback for accounts without name
- Add DisplayName computed property to User entity with fallback logic: Name -> Email -> Username
- Update dashboard recent-orders to use DisplayName property for cleaner code
- Handle cases where customer accounts are created without name field
- Improve error handling in dashboard queries
- Remove unused using directive from User.cs1 parent 9482e01 commit f4c0493
File tree
2 files changed
+11
-4
lines changed- VehicleShowroomManagement/src
- Application/Features/Dashboard/Queries/GetRecentOrders
- Domain/Entities
2 files changed
+11
-4
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
148 | 147 | | |
149 | 148 | | |
150 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
151 | 158 | | |
152 | 159 | | |
0 commit comments