public async Task <IActionResult> GetOrganisationByName(string name) { var decodedName = WebUtility.UrlDecode(name); _logger.LogInformation($"Received request to retrieve Organisation {decodedName}"); var organisation = await _organisationQueryRepository.GetOrganisationByName(decodedName); if (organisation == null) { var ex = new ResourceNotFoundException(name); throw ex; } return(Ok(Mapper.Map <OrganisationResponse>(organisation))); }