コード例 #1
0
 public IHttpActionResult GetAllComputers()
 {
     try
     {
         var commands = _monitorService.GetAllComputers();
         return(Ok(commands));
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }