Beispiel #1
0
        public List <StaffMaster> GetEmployeeListForLibrary()
        {
            List <StaffMaster> StaffMasterList        = StaffMasterIntegration.GetEmployeeList();
            List <StaffMaster> StaffMasterList_Filter = (from x in StaffMasterList
                                                         where !x.EmployeeName.Contains("ADMIN")
                                                         select x).OrderBy(a => a.EmployeeName).ToList();

            return(StaffMasterList_Filter);
        }
Beispiel #2
0
        public List <StaffMaster> GetEmployeeList()
        {
            //return StaffMasterIntegration.GetEmployeeList();

            string UniqueKey = "GetEmployeeList";

            if (HttpRuntime.Cache[UniqueKey] == null)
            {
                List <StaffMaster> StaffMasterList = StaffMasterIntegration.GetEmployeeList();
                HttpRuntime.Cache[UniqueKey] = StaffMasterList;
            }
            return((List <StaffMaster>)(HttpRuntime.Cache[UniqueKey]));
        }
Beispiel #3
0
 public List <StaffMaster> GetEmployeeList()
 {
     return(StaffMasterIntegration.GetEmployeeList());
 }