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)]
|
||||
|
||||
@@ -79,9 +79,9 @@ namespace Disco.Models.Repository
|
||||
#region Helper Members
|
||||
public decimal JobComponentsTotalCost()
|
||||
{
|
||||
if (this.JobComponents != null)
|
||||
if (JobComponents != null)
|
||||
{
|
||||
return this.JobComponents.Sum(jc => jc.Cost);
|
||||
return JobComponents.Sum(jc => jc.Cost);
|
||||
}
|
||||
return decimal.Zero;
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace Disco.Models.Repository
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return this.Description;
|
||||
return Description;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Disco.Models.Repository
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return this.Description;
|
||||
return Description;
|
||||
}
|
||||
|
||||
public static class JobTypeIds
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace Disco.Models.Repository
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return this.Name;
|
||||
return Name;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace Disco.Models.Repository
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return this.Name;
|
||||
return Name;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -73,32 +73,32 @@ namespace Disco.Models.Repository
|
||||
{
|
||||
var changed = false;
|
||||
|
||||
if (!this.UserId.Equals(u.UserId, StringComparison.OrdinalIgnoreCase))
|
||||
if (!UserId.Equals(u.UserId, StringComparison.OrdinalIgnoreCase))
|
||||
throw new ArgumentException("User Id's do not match", nameof(u));
|
||||
|
||||
if (this.Surname != u.Surname)
|
||||
if (Surname != u.Surname)
|
||||
{
|
||||
this.Surname = u.Surname;
|
||||
Surname = u.Surname;
|
||||
changed = true;
|
||||
}
|
||||
if (this.GivenName != u.GivenName)
|
||||
if (GivenName != u.GivenName)
|
||||
{
|
||||
this.GivenName = u.GivenName;
|
||||
GivenName = u.GivenName;
|
||||
changed = true;
|
||||
}
|
||||
if (this.DisplayName != u.DisplayName)
|
||||
if (DisplayName != u.DisplayName)
|
||||
{
|
||||
this.DisplayName = u.DisplayName;
|
||||
DisplayName = u.DisplayName;
|
||||
changed = true;
|
||||
}
|
||||
if (this.EmailAddress != u.EmailAddress)
|
||||
if (EmailAddress != u.EmailAddress)
|
||||
{
|
||||
this.EmailAddress = u.EmailAddress;
|
||||
EmailAddress = u.EmailAddress;
|
||||
changed = true;
|
||||
}
|
||||
if (this.PhoneNumber != u.PhoneNumber)
|
||||
if (PhoneNumber != u.PhoneNumber)
|
||||
{
|
||||
this.PhoneNumber = u.PhoneNumber;
|
||||
PhoneNumber = u.PhoneNumber;
|
||||
changed = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user