Esempio n. 1
0
 public async Task <ActionResult <BinaryLauncher> > EditBinaryLauncher([FromBody] BinaryLauncher launcher)
 {
     try
     {
         return(await _service.EditBinaryLauncher(launcher));
     }
     catch (ControllerNotFoundException e)
     {
         return(NotFound(e.Message));
     }
     catch (ControllerBadRequestException e)
     {
         return(BadRequest(e.Message));
     }
 }