public async Task <ActionResult <ViewBill[]> > SearchAsync([FromQuery] SearchBill request, CancellationToken cancellationToken) { var Bills = await _billQuery.ListAsync( request.CustomerId, request.TenementId, request.ContractId, request.TemplateId, request.StartDateRange, request.EndDateRange, request.StatusId, cancellationToken); return(_mapper.Map <ViewBill[]>(Bills)); }