예제 #1
0
        public IEnumerable <Distributor> GetDistributors()
        {
            var dist = _repo.GetAll();

            dist = dist.OrderByDescending(s => s.DistributorId);
            return(dist);
        }
예제 #2
0
        public void ScalaUpdate()
        {
            ScalaConnector           scalaConnector = new ScalaConnector(Config.ScalaFactoryConfigPath);
            IList <ScalaDistributor> scalaDistList  = scalaConnector.GetDistributorsData();
            List <Distributor>       distList       = repository.GetAll() as List <Distributor>;

            ScalaUpdate(distList, scalaDistList);
        }
예제 #3
0
        public GetAllDistributorsOutput GetAllDistributors()
        {
            var distributor = _DistributorRepository.GetAll().OrderBy(b => b.CreationTime);

            return(new GetAllDistributorsOutput
            {
                Distributors = Mapper.Map <List <DistributorDto> >(distributor)
            });
        }
예제 #4
0
 public List <Distributor> GetDistributors()
 {
     return(distributorRepository.GetAll().OfType <Distributor>().ToList());
 }
예제 #5
0
 public IEnumerable <Distributor> GetAllDistributors()
 {
     return(_distributorRepository.GetAll());
 }
예제 #6
0
 public async Task <List <Distributor> > GetAll()
 {
     return(await _repository.GetAll());
 }
예제 #7
0
 public List <DistributorModel> GetAll()
 {
     return(_distributorRepository.GetAll().ToList());
 }