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
        public async Task <ActionResult> Index()
        {
            var epics = await repository.GetEpics();

            return(View(epics));
        }