Esempio n. 1
0
        private void BindControls(JobTitleFilterViewModel model)
        {
            if (model == null)
            {
                model = new JobTitleFilterViewModel();
            }

            model.Departments = _cache.GetDepartmentSelectList(1);
        }
Esempio n. 2
0
        private void BindControls(EmployeeFilterViewModel model)
        {
            if (model == null)
            {
                model = new EmployeeFilterViewModel();
            }

            model.Departments = _cache.GetDepartmentSelectList(1);
            model.JobTitles   = _cache.GetJobTitleSelectList(null, 1);
            model.Branchs     = _cache.GetBranchSelectList(1);
        }