public ActionResult CompleteTask(int taskId) { _assignmentTaskAndSubmissionService.CompleteTask(taskId); ViewBag.Filter = _assignmentTaskAndSubmissionService.GetTaskDisplayFilter("Tasks", "Student", "tasks"); List <TaskViewModel> tasks = _assignmentTaskAndSubmissionService.GetTasks(CurrentUser.Id, TaskFilterType.Active); return(PartialView("_StudentTaskPartial", tasks)); }
public ActionResult CompleteTask(int taskId) { _assignmentTaskAndSubmissionService.CompleteTask(taskId); ViewBag.Filter = _assignmentTaskAndSubmissionService.GetTaskDisplayFilter("Index", "Task", "tasks"); List <TaskViewModel> tasks = _assignmentTaskAndSubmissionService.GetTasks(User.Id, TaskFilterType.Active); ViewData["RequestFrom"] = "AddTask"; return(PartialView("_TaskPartial", tasks)); }