コード例 #1
0
        public async Task <IActionResult> Create(ShortUrlRequestDto requestDto)
        {
            var apiResult = await
                            new ApiHelper <ApplicationResponse <ShortUrlResponseDto> >(_httpClient, _securityTokenHandler)
                            .Post(ApiUrl.AddShortly(_apiUrl), requestDto);

            return(Json(apiResult));
        }