Beispiel #1
0
        public async Task <IActionResult> GetAll()
        {
            var _request = new ProjectGetAllRequest();
            var _result  = await _mediator.Send(_request);

            return(Ok(_result));
        }
        public async Task <IEnumerable <ProjectResponse> > Handle(ProjectGetAllRequest request, CancellationToken cancellationToken)
        {
            var _result = await _projectService.GetAllAsync();

            var _mappedResult = _mapper.Map <IEnumerable <ProjectResponse> >(_result);

            return(_mappedResult);
        }