title: linq query to group the items
body: <pre><code>var sales = _salesService.GetSales(parameters)
  </code></pre>
  
  <p>The list is something like </p>
  
  <pre><code>var listSales = new List&lt;SalesData&gt;();
  listSales .Add(new SalesData
  {
      Name = "Apple",
      Quantity = 1000
  });
  listSales .Add(new SalesData
  {
      Name = "Banana",
      Quantity = 2000
  });
  listSales .Add(new SalesData
  {
      Name = "Peach",
      Quantity = 1
  });
  listSales .Add(new SalesData
  {
      Name = "Mango",
      Quantity = 1
  });
  </code></pre>
  
  <p>I want to write a linq query so that I can group the 'Name' as 'Others' if the quantity is less than 1 percent of the total quantity.</p>
  
  <p>So result of the query should be something like </p>
  
  <pre><code>Apple  56
  Banana 23
  Others 2  -- ( peach's quantity less than than 1% + Mango Quantity less than 1%)
  </code></pre>