/// <summary>
 /// Check if user present in AD
 /// </summary>
 /// <param name="userID"></param>
 /// <returns></returns>
 public static HeadCount CheckUserInAD(HeadCount headcount)
 {
     if (String.IsNullOrEmpty(headcount.UserID))
     {
         headcount.Active = null;
     }
     else
     {
         var exists = LDAPHelper.SearchAUserByLogin(headcount.UserID);
         headcount.Active = exists != null ? true : false;
     }
     return(headcount);
 }