Example #1
0
 public static IEnumerable <object> getAllEntiresList(int type)
 {
     if (type == 1)
     {
         return(EmpId.getAllEmpIdList().Cast <object>());
     }
     else if (type == 2)
     {
         return(SSN.getAllSSNList().Cast <object>());
     }
     else if (type == 3)
     {
         return(ZipCode.getAllZipCodeList().Cast <object>());
     }
     else if (type == 4)
     {
         return(Address.getAllCitiesList().Cast <object>());
     }
     else if (type == 5)
     {
         //return Person.getAllPersonList().Cast<object>();
         return(CardNo.getAllCardNosList().Cast <object>());
     }
     return(new List <object>());
 }