public IList <APIMasterResponseDetails> GetICList(APICredenrials objAPICredenrials) { try { objDecisionPointEngine = new DecisionPointEngine(); objAPIMasterResponseDetails = new APIMasterResponseDetails(); objMasterResponseDetails = new List <APIMasterResponseDetails>(); objAPIMasterResponse = objDecisionPointEngine.ValidateAPIUser(objAPICredenrials.ApiUserName, objAPICredenrials.ApiPassword); if (objAPIMasterResponse.ResultCode != 216 && objAPIMasterResponse.ResultCode != 217) { objMasterResponseDetails = objDecisionPointEngine.GetVendorTypeList(objAPICredenrials.ClientId).Select(x => new APIMasterResponseDetails { Name = x.Name, Id = x.Id }).ToList(); } else { objAPIMasterResponseDetails.ResultId = objAPIMasterResponse.ResultId; objAPIMasterResponseDetails.ResultCode = objAPIMasterResponse.ResultCode; objMasterResponseDetails.Add(objAPIMasterResponseDetails); } return(objMasterResponseDetails); } catch (Exception ex) { throw ex; } }