public async Task <IActionResult> ListSavedTracks()
        {
            var input = new ListSavedTracksInput(20, 50);
            await _mediator.PublishAsync(input);

            return(_presenter.Model);
        }
Esempio n. 2
0
        public async Task ExecuteAsync(ListSavedTracksInput input)
        {
            try
            {
                var result = await _libraryService.ListSavedTracksAsync(input.Limit, input.Offset);

                _listSavedTracksOutputPort.Ok(new ListSavedTracksOutput(result));
            }
            catch (Exception ex)
            {
                _listSavedTracksOutputPort.InternalServerError(ex);
            }
        }