// get all proposals wth all of their goodies public static List <ProposalScores> GetAllProposals() { List <ProposalScores> allProps = new List <ProposalScores>(); List <int> propIds = Proposal.GetProposalIds(); foreach (int pId in propIds) { allProps.Add(GetCompleteProposal(pId)); } if (allProps.Count > 0) { //List<ProposalScores> noScoreList = allProps.OrderBy(p => p.proposal.isComplete).ToList(); List <ProposalScores> noScoreList = allProps.Where(p => p.proposal.isComplete == false).ToList(); List <ProposalScores> scoredList = allProps.Where(p => p.proposal.isComplete == true).ToList(); List <ProposalScores> sortedList = RankBySummedScores(scoredList); foreach (ProposalScores ps in noScoreList) { sortedList.Add(ps); } return(sortedList); } return(allProps); }