public LeaveBalance LeaveBalanceSearch() { LeaveBalance Result = new LeaveBalance(); // Result.EmpCodeList = _DynamicSelectList.GetEmployeeSelectList().ToList(); Result.LeaveYearList = _DynamicSelectList.LeaveYearList().ToList(); Result.LeaveYearId = _LeaveSetUp.LeaveYearList().Where(x => x.YearCurrent == true).Select(x => x.YearId).FirstOrDefault(); return(Result); }