qol: remove this
This commit is contained in:
@@ -73,9 +73,9 @@ namespace Disco.Models.Repository
|
||||
public override string ToString()
|
||||
{
|
||||
if (DeviceModel != null)
|
||||
return string.Format("{0} - {1}", this.DeviceModel, this.SerialNumber);
|
||||
return string.Format("{0} - {1}", DeviceModel, SerialNumber);
|
||||
else
|
||||
return this.SerialNumber;
|
||||
return SerialNumber;
|
||||
}
|
||||
|
||||
[NotMapped]
|
||||
|
||||
@@ -53,11 +53,11 @@ namespace Disco.Models.Repository
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(this.Name))
|
||||
if (string.IsNullOrWhiteSpace(Name))
|
||||
{
|
||||
return string.Format("{0}: {1}", this.Id, this.PurchaseDate.ToLongDateString());
|
||||
return string.Format("{0}: {1}", Id, PurchaseDate.ToLongDateString());
|
||||
}
|
||||
return this.Name;
|
||||
return Name;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,11 +48,11 @@ namespace Disco.Models.Repository
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
if (string.IsNullOrEmpty(this.ShortName))
|
||||
if (string.IsNullOrEmpty(ShortName))
|
||||
{
|
||||
return this.Name;
|
||||
return Name;
|
||||
}
|
||||
return string.Format("{0} ({1})", this.Name, this.ShortName);
|
||||
return string.Format("{0} ({1})", Name, ShortName);
|
||||
}
|
||||
|
||||
[StringLength(200)]
|
||||
|
||||
Reference in New Issue
Block a user