public IssuesController()
 {
     issueService = new IssueService(new Repositary(), UserID, TeamID);
 }
        private List<ActivityVM> GetTeamActivityVMs(int teamId, int size)
        {
            List<ActivityVM> activityVMList = new List<ActivityVM>();
            try
            {
                var activityList = repo.GetTeamActivity(teamId).OrderByDescending(s => s.CreatedDate).Take(size).ToList();

                var activityVM = new ActivityVM();
                var issueService = new IssueService(repo, UserID, TeamID);
                issueService.SiteBaseURL = SiteBaseURL;
                var commentService = new CommentService(repo, SiteBaseURL);

                foreach (var item in activityList)
                {
                    if (item.ObjectType == ActivityObjectType.Issue.ToString())
                    {
                       // issueManager.GetActivityVM()
                        activityVM = issueService.GetActivityVM(item);
                    }
                    else if (item.ObjectType == ActivityObjectType.IssueComment.ToString())
                    {
                        activityVM = commentService.GetActivityVM(item);
                    }
                    activityVMList.Add(activityVM);
                }
            }
            catch (Exception ex)
            {
                log.Error(ex);
            }
            return activityVMList;
        }
        public TeamController(IssueManager issueManager) {
            issueService=new IssueService(new Repositary(),UserID,TeamID);
            this.issueManager = issueManager;

        }
 public JsonResult GetDashBoardItemSummary()
 {
     var issueService = new IssueService(repo, UserID, TeamID);
     var vm = issueService.GetDashboardSummaryVM(TeamID);
     return Json(vm, JsonRequestBehavior.AllowGet);
 }