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