コード例 #1
0
        public async Task <GetApprenticeshipsByUlnResponse> Handle(GetApprenticeshipsByUlnRequest message)
        {
            var apprenticeships = await _commitmentsApi.GetActiveApprenticeshipsForUln(message.AccountId, message.Uln);

            return(new GetApprenticeshipsByUlnResponse
            {
                Apprenticeships = apprenticeships.ToList()
            });
        }