Exemple #1
0
        public async Task <bool> HandleAsync(GetMenuItemsByRoleRequest message, IOutputPort <GetMenuItemByRoleResponse> outputPort)
        {
            var response = await _menuItemRepository.GetMenus(message.ClientSideId);

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

            return(true);
        }