Beispiel #1
0
        public int Save()
        {
            bool result = false;
            int  res    = 0;

            if (PlanillaId > 0)
            {
                result = Update();
            }
            else
            {
                result = Insert();
            }
            if (result)
            {
                if (PlanillaId > 0)
                {
                    res = PlanillaId;
                }
                else
                {
                    DBTransaction db = new DBTransaction();
                    res = db.GetIdentity("[conj].[Planillas]");
                }
            }
            return(res);
        }