public Proposal getProposalByUser(int userId) { return(proposalRepository.All().Where(proposal => proposal.Authors.Contains(userRepository.Find(userId))).ToList().FirstOrDefault()); }
/// <summary> /// Returns a list of all the proposals /// </summary> /// <returns></returns> public List <Proposal> getProposals() { return(proposalRepo.All()); }