qol: interpolated strings
This commit is contained in:
@@ -16,7 +16,7 @@ namespace Disco.Models.Services.Searching
|
||||
|
||||
public string Id { get; set; }
|
||||
public string Type { get { return type; } }
|
||||
public string Description { get { return string.Format("{0} ({1})", Id, ComputerName); } }
|
||||
public string Description { get { return $"{Id} ({ComputerName})"; } }
|
||||
public string[] ScoreValues { get { return LazyScoreValue.Value; } }
|
||||
|
||||
public string AssetNumber { get; set; }
|
||||
@@ -27,7 +27,7 @@ namespace Disco.Models.Services.Searching
|
||||
if (AssignedUserId != null)
|
||||
{
|
||||
if (AssignedUserDisplayName != null)
|
||||
return string.Format("{0} ({1})", AssignedUserDisplayName, AssignedUserId);
|
||||
return $"{AssignedUserDisplayName} ({AssignedUserId})";
|
||||
else
|
||||
return AssignedUserId;
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Disco.Models.Services.Searching
|
||||
|
||||
public virtual string Id { get; set; }
|
||||
public string Type { get { return type; } }
|
||||
public string Description { get { return string.Format("{0} ({1}; {2})", Id, UserId, DeviceSerialNumber); } }
|
||||
public string Description { get { return $"{Id} ({UserId}; {DeviceSerialNumber})"; } }
|
||||
public string[] ScoreValues { get { return LazyScoreValue.Value; } }
|
||||
|
||||
public string DeviceSerialNumber { get; set; }
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace Disco.Models.Services.Searching
|
||||
public string Id { get; set; }
|
||||
public string FriendlyId { get; set; }
|
||||
public string Type { get { return type; } }
|
||||
public string Description { get { return string.Format("{0} ({1})", DisplayName, Id); } }
|
||||
public string Description { get { return $"{DisplayName} ({Id})"; } }
|
||||
public string[] ScoreValues { get { return LazyScoreValue.Value; } }
|
||||
|
||||
public string DisplayName { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user