Ejemplo n.º 1
0
 public IActionResult CreateScript(ScriptViewModel scriptVM)
 {
     if (_scriptService.CreateScript(scriptVM, User.Identity.Name))
     {
         return(Ok());
     }
     else
     {
         return(BadRequest());
     }
 }
Ejemplo n.º 2
0
 public async Task <Script> CreateScript(ScriptData script)
 {
     logger.LogInformation("Creating new script {scriptname}", script.Name);
     return(await scriptservice.GetScript(await scriptservice.CreateScript(script)));
 }