/* FILTER *********************************************************************************************************************************************/

        public void setViewBag(string FILTER_Keyword, int?FILTER_Active, Guid?FILTER_Languages_Id, Guid?FILTER_LessonTypes_Id)
        {
            ViewBag.FILTER_Keyword        = FILTER_Keyword;
            ViewBag.FILTER_Active         = FILTER_Active;
            ViewBag.FILTER_Languages_Id   = FILTER_Languages_Id;
            ViewBag.FILTER_LessonTypes_Id = FILTER_LessonTypes_Id;
            LanguagesController.setDropDownListViewBag(this);
            LessonTypesController.setDropDownListViewBag(this);
        }
示例#2
0
        /* FILTER *********************************************************************************************************************************************/

        public void setViewBag(string FILTER_Keyword, int?FILTER_Active, Guid?FILTER_Languages_Id)
        {
            ViewBag.FILTER_Keyword      = FILTER_Keyword;
            ViewBag.FILTER_Active       = FILTER_Active;
            ViewBag.FILTER_Languages_Id = FILTER_Languages_Id;
            UserAccountRolesController.setDropDownListViewBag(this, getUserAccess(Session).UserAccounts_EditRoles);
            BranchesController.setDropDownListViewBag(this);
            LanguagesController.setDropDownListViewBag(this);
            PromotionEventsController.setDropDownListViewBag(this);
        }
        /* SEARCH *********************************************************************************************************************************************/

        public ActionResult Search(string FILTER_Keyword, int?FILTER_Active)
        {
            if (!UserAccountsController.getUserAccess(Session).TutorSchedules_View)
            {
                return(RedirectToAction(nameof(HomeController.Index), "Home"));
            }

            setViewBag(FILTER_Keyword, FILTER_Active);
            TutorSchedulesModel model = new TutorSchedulesModel();

            model.StartTime = new DateTime(1970, 1, 1, 8, 0, 0);
            model.EndTime   = new DateTime(1970, 1, 1, 20, 0, 0);
            LanguagesController.setDropDownListViewBag(this);
            return(View(model));
        }
        /* METHODS ********************************************************************************************************************************************/

        public void setViewBag(string FILTER_Keyword)
        {
            ViewBag.FILTER_Keyword = FILTER_Keyword;
            LessonPackagesController.setDropDownListViewBag(this);
            LanguagesController.setDropDownListViewBag(this);
        }