public bool OpenExistingSession(int definitionId) { try { _service.Open(definitionId); return(true); } catch (ArgumentException) { return(false); } }
public IHttpActionResult OpenExistingSession(int definitionId) { try { _service.Open(definitionId); return(Ok(_service.GetCurrentRecording())); } catch (ArgumentException) { return(NotFound()); } }