Example #1
0
        public async Task <IActionResult> Get()
        {
            var request  = new GetApplicationsCommand();
            var response = await _mediator.Send(request);

            return(Ok(response));
        }
Example #2
0
        public async Task <IList <ApplicationDTO> > Handle(GetApplicationsCommand request, CancellationToken cancellationToken)
        {
            var result = await _repository.GetAll();

            return(result);
        }