Clear a bit more
This commit is contained in:
@@ -11,18 +11,18 @@ namespace Managing.Application.ManageBot
|
||||
public class GetAllAgentSummariesCommandHandler : IRequestHandler<GetAllAgentSummariesCommand,
|
||||
IEnumerable<AgentSummary>>
|
||||
{
|
||||
private readonly IStatisticService _statisticService;
|
||||
private readonly IAgentService _agentService;
|
||||
|
||||
public GetAllAgentSummariesCommandHandler(IStatisticService statisticService)
|
||||
public GetAllAgentSummariesCommandHandler(IAgentService agentService)
|
||||
{
|
||||
_statisticService = statisticService;
|
||||
_agentService = agentService;
|
||||
}
|
||||
|
||||
public async Task<IEnumerable<AgentSummary>> Handle(GetAllAgentSummariesCommand request,
|
||||
CancellationToken cancellationToken)
|
||||
{
|
||||
// Get all agent summaries from the database
|
||||
var allAgentSummaries = await _statisticService.GetAllAgentSummaries();
|
||||
var allAgentSummaries = await _agentService.GetAllAgentSummaries();
|
||||
|
||||
if (request.TimeFilter != "Total")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user