Ejemplo n.º 1
0
        public void ScalaUpdate(List <int> lstDistributorIds, bool markedAll)
        {
            ScalaConnector     scalaConnector = new ScalaConnector(Config.ScalaFactoryConfigPath);
            List <Distributor> distList       = repository.GetDistributorList(lstDistributorIds, markedAll);
            List <string>      distCodeList   = new List <string>();

            foreach (Distributor distributor in distList)
            {
                distCodeList.Add(distributor.Code);
            }
            IList <ScalaDistributor> scalaDistList = scalaConnector.GetDistributorsData(distCodeList);

            ScalaUpdate(distList, scalaDistList);
        }
Ejemplo n.º 2
0
 public List <shared.Models.DistributorCommon> GetDistributorList(string AgentId = "")
 {
     return(_repo.GetDistributorList(AgentId));
 }