Пример #1
0
        public async Task <RejoinRegistrationResponse> RejoinRegistrationAsync(long aoUkprn, RejoinRegistrationViewModel viewModel)
        {
            var model     = _mapper.Map <RejoinRegistrationRequest>(viewModel, opt => opt.Items["aoUkprn"] = aoUkprn);
            var isSuccess = await _internalApiClient.RejoinRegistrationAsync(model);

            return(new RejoinRegistrationResponse {
                ProfileId = viewModel.ProfileId, Uln = viewModel.Uln, IsSuccess = isSuccess
            });
        }