public bool Equals(SupplyStatus other) { if (other == null) { return(false); } return(this.Id == other.Id); }
public SupplyStatus CreateOrGet(SupplyStatus supplyStatus) { if (supplyStatus == null) { throw new ArgumentNullException(); } if (!_supplyStatuses.Contains(supplyStatus)) { _supplyStatuses.Add(supplyStatus); } return(supplyStatus); }