Exemplo n.º 1
0
 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
     });
 }
Exemplo n.º 2
0
 public void Remove(Votelist votelist)
 {
     _db.Votelists.Remove(votelist);
 }
Exemplo n.º 3
0
 public async Task CreateAsync(Votelist votelist)
 {
     await _db.Votelists.AddAsync(votelist);
 }