public IEnumerable <Distributor> GetDistributors() { var dist = _repo.GetAll(); dist = dist.OrderByDescending(s => s.DistributorId); return(dist); }
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); }
public GetAllDistributorsOutput GetAllDistributors() { var distributor = _DistributorRepository.GetAll().OrderBy(b => b.CreationTime); return(new GetAllDistributorsOutput { Distributors = Mapper.Map <List <DistributorDto> >(distributor) }); }
public List <Distributor> GetDistributors() { return(distributorRepository.GetAll().OfType <Distributor>().ToList()); }
public IEnumerable <Distributor> GetAllDistributors() { return(_distributorRepository.GetAll()); }
public async Task <List <Distributor> > GetAll() { return(await _repository.GetAll()); }
public List <DistributorModel> GetAll() { return(_distributorRepository.GetAll().ToList()); }