public static VoteListDetail ToVotelistDetail(this Votelist votelist, IEnumerable <PartyDetail> votelistsParties = null,
                                               bool includeparties = false)
 {
     return(new VoteListDetail
     {
         Id = votelist.Id,
         Description = votelist.Description,
         Name = votelist.Name,
         Parties = includeparties ? votelistsParties : null
     });
 }
Exemple #2
0
 public void Remove(Votelist votelist)
 {
     _db.Votelists.Remove(votelist);
 }
Exemple #3
0
 public async Task CreateAsync(Votelist votelist)
 {
     await _db.Votelists.AddAsync(votelist);
 }