public IEnumerable <ErrorData> BrokerFromNAV(IEnumerable <BrokerDetails> brokers)
        {
            List <ErrorData> errorList = new List <ErrorData>();

            //try
            //{
            foreach (var broker in brokers)
            {
                var    crmCode         = broker.CRMCompanyCode;
                var    navCode         = broker.NavCode;
                var    retrievedBroker = _svc.RetriveBrokerWithNavCode(navCode);
                Entity address         = null;
                if (broker.AddressIdentifier != null && broker.AddressIdentifier != "")
                {
                    address = _svc.RetrieveAddres(broker.AddressIdentifier);
                }
                if (retrievedBroker == null)
                {
                    try
                    {
                        _svc.CreateBroker(broker, address);
                        errorList.Add(new ErrorData(broker.NavCode, "Success", "Success"));
                    }
                    catch (Exception ex)
                    {
                        errorList.Add(new ErrorData(broker.NavCode, "Failed", ex.Message));
                    }
                }
                else
                {
                    try
                    {
                        _svc.UpdateBroker(broker, retrievedBroker);
                        errorList.Add(new ErrorData(broker.NavCode, "Success", "Success"));
                    }
                    catch (Exception ex)
                    {
                        errorList.Add(new ErrorData(broker.NavCode, "Failed", ex.Message));
                    }
                }
            }
            return(errorList);
            //}
            //catch (Exception ex)
            //{
            //    throw new Exception(ex.Message);
            //    //ErrorData errorData = new ErrorData(ex.Message, "");
            //    //throw new WebFaultException<ErrorData>(errorData, HttpStatusCode.ExpectationFailed);
            //}
        }