private void BindControls(JobTitleFilterViewModel model) { if (model == null) { model = new JobTitleFilterViewModel(); } model.Departments = _cache.GetDepartmentSelectList(1); }
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); }