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