18 lines
497 B
C#
18 lines
497 B
C#
using JetBrains.Annotations;
|
|
using VideoGameQuotes.Api;
|
|
|
|
namespace VideoGameQuotes.Web.Models {
|
|
|
|
public class PagedUserModel {
|
|
public int Start { get; set; }
|
|
public int End { get; set; }
|
|
}
|
|
|
|
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; } }
|
|
}
|
|
} |