public async Task <IActionResult> CreateFromHtml([Required] [MaxFileSize(1 * 1024 * 1024)] [AllowedExtensions(new[] { ".html", ".xml" })] IFormFile htmlFile, [Required, FromForm] string device, [Required, FromForm] string firmware) { var listOfModules = await _defaultmanager.GetDefaultValuesAllModulesAsync(firmware, device); var toml = await _manager.CreateFromHtmlAsync(htmlFile, listOfModules); var result = await _creator.GenerateConfigTomlModelWithoutGitAsync(toml); return(Ok(result)); }