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()); }
public Task <IEnumerable <TaxReadModel> > List(CancellationToken cancellationToken) => _taxRepository.GetAll(cancellationToken);