title: Get distinct values from list
body: <pre><code>    public List&lt;MAS_EMPLOYEE_TRANSFER&gt; GetEmployeeTransferListForHR(TimecardDataContext TimecardDC)
      {
          List&lt;MAS_EMPLOYEE_TRANSFER&gt; objEmployeeTransferList = null;
          try
          {
              objEmployeeTransferList = new List&lt;MAS_EMPLOYEE_TRANSFER&gt;();
              objEmployeeTransferList = TimecardDC.MAS_EMPLOYEE_TRANSFER.Where(
                  employee =&gt;
                      employee.HR_ADMIN_IND=="Y").ToList();                
          }
          finally
          {
          }
          return objEmployeeTransferList;
      }
  </code></pre>
  
  <p>It shows all list of values where hr admin indicator=yes. But I have to get <code>hr admin=yes</code> and distinct(empid) from the table <code>MAS_EMPLOYEE_TRANSFER</code>. How to get distinct <code>empId</code> from the the <code>objEmployeeTransferList</code>.</p>