public string EmployeeInformation(List<Employee> objEmployee){ try{ string IsSuccess = ""; WCF_Service_Reference objWCFService = new WCF_Service_Reference(); List<Object> objList = objEmployee; IsSuccess = objWCFService.ActionMapping(objList,(int)EnumEntities.Employee); return IsSuccess;}catch(){-----------} }
public string ActionMapping(List<Object> objList, int nEntityInfo){(EnumEntities) EnumEnt = (EnumEntities)nEntityInfo; swicth(EnumEnt) { case EnumEnt.Employee : List<Employee> objEmployee = objList; PerformOperation(objEmployee); break: case EnumEnt.User: List<User> objUser = objList; PerformOperation(objUser); break; case EnumEnt.Bank: List<Bank> objBank = objList; PerformOperation(objBank); break; default: break: }}
List<Object> objList