public async Task <ProposalModel> Approve(int proposalId)
        {
            var proposal = await _dbContext.Proposals.FirstAsync(p => p.ProposalId == proposalId);

            proposal.Approved = true;
            await _dbContext.SaveChangesAsync();

            return(EntityModelAdapter.FromProposalToProposalModel(proposal));
        }
 public async Task <List <ProposalModel> > GetAllForConference(int conferenceId)
 {
     return(await _dbContext.Proposals.Where(p => p.ConferenceId == conferenceId).Select(p => EntityModelAdapter.FromProposalToProposalModel(p)).ToListAsync());
 }