예제 #1
0
 public List <Issue> GetAllIssues(int page, int perPage)
 {
     try
     {
         var issues = _issueRepository.GetAll(page, perPage);
         issues.ForEach(x => x.WorkItem = _workItemRepository.FindByIssue(x.Id));
         return(issues);
     }
     catch (Exception e)
     {
         throw new Exception(e.Message);
     }
 }