public IHttpActionResult AddLine(int clientId, Line line) { try { _linesManager.AddLine(clientId, line); return(Ok()); } catch (Exception) { return(BadRequest()); } }
public IHttpActionResult AddLine(Line line) { try { _linesManager.AddLine(line); return(Ok()); } catch (Exception ex) { return(BadRequest(ex.Message)); } }