public void OnGet() { //Used for search //Tasks = _taskData.GetTaskByName(SearchTerm); SprintTasks = _taskData.GetTasks(TaskStatus.Sprint).ToList(); DoingTasks = _taskData.GetTasks(TaskStatus.Doing).ToList(); BlockedTasks = _taskData.GetTasks(TaskStatus.Blocked).ToList(); }
public List <TaskDTO> GetTasks() { List <Data.Task> tasks = _taskData.GetTasks(); List <TaskDTO> DTOTasks = Mapper.Map <List <TaskDTO> >(tasks); return(DTOTasks); }
public void OnGet() { Tasks = _taskData.GetTasks(); SprintTasks = _taskData.GetTasks(TaskStatus.Sprint).ToList(); DoingTasks = _taskData.GetTasks(TaskStatus.Doing).ToList(); BlockedTasks = _taskData.GetTasks(TaskStatus.Blocked).ToList(); QaTasks = _taskData.GetTasks(TaskStatus.QA).ToList(); DoneTasks = _taskData.GetTasks(TaskStatus.Done).ToList(); foreach (var task in Tasks) { switch (task.Status) { case TaskStatus.Sprint: SprintSP += task.StoryPoints; break; case TaskStatus.Doing: DoingSP += task.StoryPoints; break; case TaskStatus.Blocked: BlockedSP += task.StoryPoints; break; case TaskStatus.QA: QaSP += task.StoryPoints; break; case TaskStatus.Done: DoneSP += task.StoryPoints; break; default: break; } } AllSP = SprintSP + DoingSP + BlockedSP + QaSP + DoneSP; }
public IActionResult GetTasks() { return(Ok(_taskData.GetTasks())); }
public void OnGet() { BacklogTasks = _taskData.GetTasks(Core.TaskStatus.Backlog).ToList(); }
public void OnGet() { QaTasks = _taskData.GetTasks(TaskStatus.QA).ToList(); }