public GetLikelyThiefViewModel(Data.Model.LikelyThief likelyThief, bool hasRightToEdit) { LikelyThief = likelyThief; HasRightToEdit = hasRightToEdit; VoteBlock = new VoteBlockViewModel(likelyThief); CommentsBlock = new CommentsBlockViewModel(likelyThief); }
public GetCasinoViewModel(Data.Model.Casino casino, IList<string> excemptionsTexts, bool showDeleteCasinoLink, bool showEditCasinoLink, bool showAddSuspensionLink) { Casino = casino; ExcemptionsTexts = excemptionsTexts; ShowDeleteCasinoLink = showDeleteCasinoLink; ShowEditCasinoLink = showEditCasinoLink; ShowAddSuspensionLink = showAddSuspensionLink; CommentsBlock = new CommentsBlockViewModel(casino); }
public GetSalePointViewModel(DrugsSalePoint salePoint) { SalePoint = salePoint; CommentsBlock = new CommentsBlockViewModel(salePoint); }
public GetInitiativeSuggestionViewModel(Data.Model.InitiativeSuggestion initiativeSuggestion) { InitiativeSuggestion = initiativeSuggestion; VoteBlock = new VoteBlockViewModel(initiativeSuggestion); CommentsBlock = new CommentsBlockViewModel(initiativeSuggestion); }