public TextDto GetFromDb() { _logger.Log(LogLevel.Information, "get words from DB"); var res = _wordService.GetWords(StorageOption.Db); return(DtoDomainMapper.ToDto(res)); }
public TextDto CalculateNumberOfWords(TextDto dto) { _logger.Log(LogLevel.Information, "calculating number of words"); var domain = DtoDomainMapper.ToDomain(dto); _wordService.CalculateNumberOfWords(domain); return(DtoDomainMapper.ToDto(domain)); }
public TextDto GetFromFile() { _logger.Log(LogLevel.Information, "get words from file"); return(DtoDomainMapper.ToDto(_wordService.GetWords(StorageOption.File))); }