Exemplo n.º 1
0
        public ActionResult Index()
        {
            var view = Request.QueryString["view"] != null ? Request.QueryString["view"].ToString() : "";

            ViewBag.Filter = _assignmentTaskAndSubmissionService.GetTaskDisplayFilter("Index", "Task", "tasks", TaskFilterType.Active, view);
            ViewBag.Tasks  = _assignmentTaskAndSubmissionService.GetTasks(User.Id, TaskFilterType.Active);
            return(View("Index"));
        }
 public ActionResult Tasks()
 {
     ViewBag.Filter = _assignmentTaskAndSubmissionService.GetTaskDisplayFilter("Tasks", "Student", "tasks");
     ViewBag.Tasks  = _assignmentTaskAndSubmissionService.GetTasks(CurrentUser.Id, TaskFilterType.Active);
     return(View("Tasks"));
 }