Beispiel #1
0
        public async Task <IActionResult> Execute(JObject jObj)
        {
            if (jObj == null)
            {
                throw new ArgumentNullException(nameof(jObj));
            }

            var parameter     = _requestBuilder.GetSearchDhlParcelShopLocations(jObj);
            var shopLocations = await _dhlClient.GetParcelShopLocations(parameter);

            var result = _responseBuilder.GetShopParcelLocations(shopLocations);

            return(new OkObjectResult(result));
        }