コード例 #1
0
 public IHttpActionResult AddLine(int clientId, Line line)
 {
     try
     {
         _linesManager.AddLine(clientId, line);
         return(Ok());
     }
     catch (Exception)
     {
         return(BadRequest());
     }
 }
コード例 #2
0
 public IHttpActionResult AddLine(Line line)
 {
     try
     {
         _linesManager.AddLine(line);
         return(Ok());
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }