public async Task <List <TModel> > GetAll(CancellationToken cancellationToken = default) { var dataDomain = await _context.Set <TDatabase>().ToListAsync(cancellationToken); return(_mapper.Map <List <TModel> >(dataDomain)); }
public async Task <List <TModel> > GetAll(CancellationToken cancellationToken = default) { var dataDomain = await _context.Set <TDatabase>().ToListAsync(cancellationToken); return(_mapper.Map <List <TModel> >(dataDomain)); }