コード例 #1
0
        public async Task <IActionResult> ApprenticeshipLocations()
        {
            var query = new ApprenticeshipLocations.Query();

            return(await _mediator.SendAndMapResponse(
                       query,
                       response => View(response)));
        }
コード例 #2
0
        public async Task <IActionResult> ApprenticeshipLocations()
        {
            var query = new ApprenticeshipLocations.Query()
            {
                ProviderId = _providerContext.ProviderInfo.ProviderId
            };

            return(await _mediator.SendAndMapResponse(
                       query,
                       response => View(response)));
        }