public ActionResult BurndownCharts(BurndownChartViewModel model) { List<Project> allProject = unitOfWork.ProjectRepository.GetAll(); ViewBag.allProject = allProject; if (model.ProjectID != null) { List<Sprint> sprintList = unitOfWork.SprintRepository.AllByProjectID(model.ProjectID); ViewBag.SprintList = sprintList; } else { } return View(model); }
/// <summary> /// List of Sprint against project for burndown chart /// Mahedee @17-03-14 /// </summary> /// <returns></returns> public ActionResult BurndownCharts() { //List<Sprint> sprintList = unitOfWork.SprintRepository.AllByProjectID(1); List<Project> allProject = unitOfWork.ProjectRepository.GetAll(); ViewBag.allProject = allProject; BurndownChartViewModel model = new BurndownChartViewModel(); // ViewBag.SprintList = sprintList; return View(model); }