예제 #1
0
        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);
        }
예제 #2
0
 public int insertUnit(UnitDTO unit)
 {
     return(unitDAO.insertUnit(unit));
 }