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); } }