/// <summary> /// Return a listof reviews whose proposal has the ID equal to the parameter proposalId /// </summary> /// <param name="proposalId"></param> /// <returns></returns> public List <Review> getReviewsByProposalId(int proposalId) { List <Review> reviews = reviewRepo.All(); reviews = reviews.Where(rev => rev.Proposal.ProposalId == proposalId).ToList(); return(reviews); }
public IActionResult ViewReviews() { var reviews = reviewRepository.All(); return(View(reviews)); }