public async Task <IActionResult> DataDefinitionSave() { string yaml = await ControllerContext.HttpContext.Request.GetRawBodyStringAsync(); string yamlFilename = ControllerContext.HttpContext.Request.GetYamlFileNameFromRequest(); Reference user = ControllerContext.HttpContext.Request.GetUserOrDefault(); string correlationId = ControllerContext.HttpContext.Request.GetCorrelationId(); return(await _definitionService.SaveDefinition(yaml, yamlFilename, user, correlationId)); }
public Task <IActionResult> RunDataDefinitionSave() { return(_definitionService.SaveDefinition(ControllerContext.HttpContext.Request)); }