示例#1
0
 public async Task Update(int scriptId, [FromBody] ScriptPostParameters postParams)
 {
     await _scriptManager.Update(scriptId, postParams.Name, postParams.Description, postParams.Published_Version);
 }
示例#2
0
 public async Task <int> New([FromBody] ScriptPostParameters postParams)
 {
     return(await _scriptManager.NewAsync(postParams.Name, postParams.Description));
 }