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