public async Task <IActionResult> Get() { var request = new GetApplicationsCommand(); var response = await _mediator.Send(request); return(Ok(response)); }
public async Task <IList <ApplicationDTO> > Handle(GetApplicationsCommand request, CancellationToken cancellationToken) { var result = await _repository.GetAll(); return(result); }