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));
        }
Exemplo n.º 2
0
        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));
        }