public async Task <ActionResult <string> > CreatePipeline(string name) { if (name == null) { return(BadRequest("Missing name")); } try { string fileName = name; if (!name.EndsWith(".txt")) { fileName = name + ".txt"; } SetStorageAccount(); await fileStorageService.SaveFile(fileShare, fileName, ""); } catch (Exception ex) { return(BadRequest()); } return(Ok($"OK")); }
public async Task SavePipeline(string name, string content) { await _fileStorage.SaveFile(fileShare, name, content); }