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); }
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))); }