/// <summary>
 /// get list of clsEmployee by field
 /// </summary>
 /// <param name="fieldName">field name</param>
 /// <param name="value">value</param>
 /// <returns>list</returns>
 public List <clsEmployee> GetAllBy(clsEmployee.clsEmployeeFields fieldName, object value)
 {
     return(_dataObject.SelectByField(fieldName.ToString(), value));
 }
 /// <summary>
 /// delete clsEmployee by field.
 /// </summary>
 /// <param name="fieldName">field name</param>
 /// <param name="value">value</param>
 /// <returns>true for successfully deleted</returns>
 public bool Delete(clsEmployee.clsEmployeeFields fieldName, object value)
 {
     return(_dataObject.DeleteByField(fieldName.ToString(), value));
 }