// update a set of scores public static void UpdateScores(ProposalScores ps) //List<ScoreViewModel> svms) { { Proposal proposal = new Proposal(); proposal = ps.proposal; List <ScoreViewModel> svms = new List <ScoreViewModel>(); svms = ps.scoresViews; List <Score> scores = new List <Score>(); bool completed = true; foreach (ScoreViewModel svm in svms) { if (svm.score.givenScore == null) { completed = false; } Score.UpdateScore(svm.score); } proposal.isComplete = completed; Proposal.UpdateProposal(proposal); }