예제 #1
0
 public GetLikelyThiefViewModel(Data.Model.LikelyThief likelyThief, bool hasRightToEdit)
 {
     LikelyThief = likelyThief;
     HasRightToEdit = hasRightToEdit;
     VoteBlock = new VoteBlockViewModel(likelyThief);
     CommentsBlock = new CommentsBlockViewModel(likelyThief);
 }
 public GetInitiativeSuggestionViewModel(Data.Model.InitiativeSuggestion initiativeSuggestion)
 {
     InitiativeSuggestion = initiativeSuggestion;
     VoteBlock = new VoteBlockViewModel(initiativeSuggestion);
     CommentsBlock = new CommentsBlockViewModel(initiativeSuggestion);
 }