Beispiel #1
0
        public async Task <bool> Handle(GetPhoneBookRequest message, IOutputPort <GetPhoneBookResponse> outputPort)
        {
            var response = await _phoneBookRepository.GetPhoneBooks();

            outputPort.Handle(new GetPhoneBookResponse(response, true, null));

            return(true);
        }