public async Task <IActionResult> GetAll([FromQuery] RequestAllDto requestAllDto) { if (!_session.UserId.HasValue) { return(BadRequest()); } var userId = _session.UserId.GetValueOrDefault(); var subscriptions = await _repository.GetUserSubscription(userId, requestAllDto); var response = subscriptions.Map(subscription => new EventSubscriptionResponse(subscription)); return(CreateResponseOnGetAll(response)); }