Beispiel #1
0
        /// <summary>
        /// Gets the assignment display filter.
        /// </summary>
        /// <param name="action">The action.</param>
        /// <param name="controller">The controller.</param>
        /// <param name="updateTargetId">The update target id.</param>
        /// <param name="displayFilter">The display filter.</param>
        /// <returns></returns>
        public DisplayFilterViewModel GetAssignmentDisplayFilter(string action, string controller, string updateTargetId, StudentAssignmentFilterType displayFilter = StudentAssignmentFilterType.Active)
        {
            DisplayFilterViewModel model = null;

            try
            {
                model = DisplayFilterViewModelFactory.CreateAssignmentDisplayFilterViewModel(action, controller, updateTargetId, displayFilter);
            }
            catch (Exception ex)
            {
                ExceptionManager.HandleException(ex, PolicyNameType.ExceptionReplacing);
            }
            return(model);
        }
Beispiel #2
0
        /// <summary>
        /// Gets the task filter view model
        /// </summary>
        /// <param name="action">The target action</param>
        /// <param name="controller">The target controller.</param>
        /// <param name="updateTargetId">The update target id.</param>
        /// <param name="displayFilter">The active display filter.</param>
        /// <returns></returns>
        public DisplayFilterViewModel GetTaskDisplayFilter(string action, string controller, string updateTargetId, TaskFilterType displayFilter = TaskFilterType.Active, string view = "")
        {
            DisplayFilterViewModel model = null;

            try
            {
                model = DisplayFilterViewModelFactory.CreateTaskDisplayFilterViewModel(action, controller, updateTargetId, displayFilter, view);
            }
            catch (Exception ex)
            {
                ExceptionManager.HandleException(ex, PolicyNameType.ExceptionReplacing);
            }
            return(model);
        }