Beispiel #1
0
        public List <TaskBacklogView> GetAll(int sprintId)
        {
            List <TaskBacklogView> taskblv     = new List <TaskBacklogView>();
            List <TaskBacklog>     taskbacklog = _repository.GetAll(sprintId);

            foreach (TaskBacklog tb in taskbacklog)
            {
                TaskBacklogView tblv = new TaskBacklogView();
                tblv.TaskId   = tb.TaskId;
                tblv.TaskName = tb.Title;
                tblv.PersonId = tb.UserId;

                tblv.StartDate     = tb.StartDate;
                tblv.ActualEndDate = tb.ActualEndDate;
                tblv.EndDate       = tb.EndDate;
                tblv.Status        = tb.Status;
                taskblv.Add(tblv);
            }
            return(taskblv);
        }
        //this method will return all the task in that same sprint
        public List <TaskBacklogView> GetAllTask(int id)
        {
            List <TaskBacklogView> taskblv     = new List <TaskBacklogView>();
            List <TaskBacklog>     taskbacklog = _taskBacklog.GetAllTaskDetail(id);

            foreach (TaskBacklog tb in taskbacklog)
            {
                TaskBacklogView tblv = new TaskBacklogView();
                tblv.TaskId        = tb.TaskId;
                tblv.TaskName      = tb.TaskName;
                tblv.PersonId      = tb.PersonId;
                tblv.SprintId      = tb.SprintId;
                tblv.StartDate     = tb.StartDate;
                tblv.ActualEndDate = tb.ActualEndDate;
                tblv.EndDate       = tb.EndDate;
                tblv.Status        = tb.Status;
                taskblv.Add(tblv);
            }
            return(taskblv);
        }