Skip to content

Commit

Permalink
Including file that was missed in earlier commits/pushes
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerMcConville committed Dec 10, 2014
1 parent 3dc1bee commit ea8ab17
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions TransactionService/TransactionService/Models/Transaction.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
using System.ComponentModel.DataAnnotations;

namespace TransactionService.Models
{
public class Transaction
{
[Required]
public decimal? Amount { get; set; }

public string Description { get; set; }

[Required]
public bool? WasPlanned { get; set; }

[Required]
public bool? WasNecessary { get; set; }

public Data_Access.Transaction ToDataAccessTransaction()
{
return new Data_Access.Transaction
{
Amount = Amount.Value,
Description = Description,
WasNecessary = WasNecessary.Value,
WasPlanned = WasPlanned.Value
};
}
}
}

0 comments on commit ea8ab17

Please sign in to comment.