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