vgquotes/Src/VideoGameQuotes.Web/Models/QuoteModel.cs
2011-02-15 00:18:29 +00:00

12 lines
391 B
C#

using JetBrains.Annotations;
using VideoGameQuotes.Api;
namespace VideoGameQuotes.Web.Models {
public class QuoteModel {
[NotNull]
public Quote Quote { get; set; }
public User User { get; set; }
public bool VotedUp { get { return Quote.VotedFor(User) == VoteDirection.Up; } }
public bool VotedDown { get { return Quote.VotedFor(User) == VoteDirection.Down; } }
}
}