public ActionResult CreateBacklog(int projectId, int sprintNo = 0, int sortBy = 0)
        {
            var backlogModel = new BacklogViewModel();

            backlogModel.Backlog.ProjectId = projectId;
            backlogModel.ProjectEpics      = EpicRepository.GetEpics(projectId);
            backlogModel.Epic.ProjectId    = backlogModel.Backlog.ProjectId;

            backlogModel.ViewSortBy   = sortBy;
            backlogModel.ViewSprintNo = sprintNo;
            return(View(backlogModel));
        }
        public ActionResult IndexEpic(int id)
        {
            List <Epic> Epics = new List <Epic>();

            Epics = EpicRepository.GetEpics(id);
            if (Epics.Count == 0)
            {
                var pTask = new Epic();
                pTask.ProjectId = id;
                Epics.Add(pTask);
            }
            return(View(Epics));
        }
Beispiel #3
0
        //
        // GET: /Backlog/
        public ActionResult Index()
        {
            int backlogId = Int32.Parse(Session["BacklogId"].ToString()),
                productId = Int32.Parse(Session["ProductId"].ToString());

            var sprintRepo  = new SprintRepository();
            var backlogRepo = new BacklogRepository();
            var epicRepo    = new EpicRepository();

            bool isSprintActive;
            var  sprintTasks = sprintRepo.GetCurrentSprintTasks(productId, out isSprintActive);

            var model = new BacklogModel()
            {
                BacklogItems   = backlogRepo.GetBacklogTasks(backlogId),
                SprintItems    = sprintTasks,
                Epics          = epicRepo.GetEpicsForBacklog(backlogId),
                IsSprintActive = isSprintActive,
                SprintName     = sprintRepo.GetCurrentSprintName(productId)
            };

            return(View(model));
        }
Beispiel #4
0
 public EpicController()
 {
     repository = new EpicRepository();
 }