public List<Bug> GetBugsByProject(Project project) { BugRepository bugRepo = new BugRepository(); List<Bug> bugList = bugRepo.GetAll().Where(x => x.Project.Id == project.Id).ToList(); return bugList; }
public List<Bug> GetAllBugs() { BugRepository repo = new BugRepository(); List<Bug> bugList = repo.GetAll().ToList(); return bugList; }