title: Return array object in asp.net WebAPI
body: <p>I want to create WEB API which sends input to Angular. I want to send data in JSON format as an <em>array</em>.</p>
  
  <p>Below is my code:</p>
  
  <pre><code>[HttpGet]
  [ActionName("GetEmployeeByID")]
  public Employee Get(int id)
  {
      Employee emp = null;
      while (reader.Read())
      {
          emp = new Employee();
          emp.ClientId = Convert.ToInt32(reader.GetValue(0));
          emp.ClientName = reader.GetValue(1).ToString();
      }
      return emp;
  }
  </code></pre>
  
  <p><strong>Actual output:</strong></p>
  
  <pre><code>{"ClientId":15,"ClientName":"Abhinav Singh"}
  </code></pre>
  
  <p><strong>Expected output:</strong></p>
  
  <pre><code>[{"ClientId":15,"ClientName":"Abhinav Singh"}]
  </code></pre>