public async Task <SentHistoryResponse> GetSentHistoryAsync(GetSentHistoryRequest request) { var maxCount = request.MaxCount > 0 ? request.MaxCount : 20; var records = await _smsProviderManager.GetSentHistoryAsync(maxCount, request.Since); return(new SentHistoryResponse { SentHistoryRecords = records.Select(SentHistoryRecord.Create).ToList() }); }