-
-
-
-
- @CurrentUser.User.NickName.Substring(0, Math.Min(CurrentUser.User.NickName.Length, 9))
- @if (CurrentUser.User.NickName.Length > 9)
- {
- ...
- }
-
+ @if (CurrentUser.User != null)
+ {
+
+
+
+ @CurrentUser.User.NickName.Substring(0, Math.Min(CurrentUser.User.NickName.Length, 9))
+ @if (CurrentUser.User.NickName.Length > 9)
+ {
+ ...
+ }
+
+ }
@Body