Ejemplo n.º 1
0
        public async Task <IActionResult> Postcode(string query)
        {
            var urlSetting = _config.GetPostcodeSearchUrl(_businessId.ToString());

            if (urlSetting.IsValid())
            {
                var url = string.Concat(urlSetting, query);
                return(await Task.FromResult(Redirect(url)));
            }
            return(NotFound());
        }