예제 #1
0
        public async Task <CoordinateSystemSettings> Post([FromBody] CoordinateSystemFile request)
        {
            request.Validate();

            return(await RequestExecutorContainerFactory.Build <CoordinateSystemExecutorPost>(logger,
                                                                                              configStore : configStore, trexCompactionDataProxy : trexCompactionDataProxy, customHeaders : CustomHeaders).ProcessAsync(request) as CoordinateSystemSettings);
        }
예제 #2
0
        public Task <ContractExecutionResult> PostCoordinateSystem([FromBody] CoordinateSystemFile request)
        {
            Log.LogInformation($"{nameof(PostCoordinateSystem)}: {Request.QueryString}");

            request.Validate();

            return(WithServiceExceptionTryExecuteAsync(() =>
                                                       RequestExecutorContainer
                                                       .Build <CoordinateSystemPostExecutor>(ConfigStore, LoggerFactory, ServiceExceptionHandler)
                                                       .ProcessAsync(request)));
        }