Permalink
Browse files

Refactoring Payment to Entity

  • Loading branch information...
1 parent a24772e commit c9b3882ae2d0d8cbbccd60b83b2f158a0016199f @jchadwick jchadwick committed Jan 20, 2012
Showing with 1 addition and 14 deletions.
  1. +1 −14 Core/Model/Payment.cs
View
@@ -2,21 +2,8 @@
namespace Ebuy
{
- public class Payment
+ public class Payment : Entity<Guid>
{
- public Guid Id
- {
- get
- {
- if (_id == null)
- _id = Guid.NewGuid();
-
- return _id.Value;
- }
- private set { _id = value; }
- }
- private Guid? _id;
-
public Currency Amount { get; private set; }
public Auction Auction { get; private set; }

0 comments on commit c9b3882

Please sign in to comment.