public IEnumerable <TaxTypeModel> GetAll()
        {
            var Tax = taxRepository.GetAll();

            Mapper.Initialize(map => { map.CreateMap <TaxType, TaxTypeModel>(); });
            var taxData = Mapper.Map <IEnumerable <TaxType>, IEnumerable <TaxTypeModel> >(Tax);

            return(taxData);
        }
 public IEnumerable <lmsTaxMaster> GetAll()
 {
     return(taxRepository.GetAll().ToList());
 }
Exemplo n.º 3
0
 public Task <IEnumerable <TaxReadModel> > List(CancellationToken cancellationToken) =>
 _taxRepository.GetAll(cancellationToken);