public string save(GlobalVariables.Operation pOperation, ref MySqlTransaction pTrans) { string _Id = ""; switch (pOperation) { case GlobalVariables.Operation.Add: _Id = lUnitDAO.insertUnit(this, ref pTrans); break; case GlobalVariables.Operation.Edit: _Id = lUnitDAO.updateUnit(this, ref pTrans); break; } return(_Id); }
public int updateUnit(UnitDTO unit) { return(unitDAO.updateUnit(unit)); }