public async Task <IActionResult> GetDetailedPage([FromQuery] GetCustomerDetailedPageDto dto, CancellationToken token) { return(new Presenter <GetDetailedCustomerPageResponse>( await _mediator.Send(new GetDetailedCustomerPageRequest(User.ToClaimsIdentity(), dto), token)).ToIActionResult()); }
public GetDetailedCustomerPageRequest(ClaimsIdentity identity, GetCustomerDetailedPageDto dto) : base(identity) { Interval = dto.TimeInterval; IntervalOffset = dto.IntervalOffset ?? 0; }