Пример #1
0
        public static int InsertScalar(Cliente newEntity)
        {
            int         intNewId;
            ClientesDAL currentDAL = GetDAL();

            intNewId = currentDAL.InsertScalar(newEntity);
            return(intNewId);
        }
Пример #2
0
        public static int InsertValid(Cliente newEntity, out string strErrores)
        {
            int         intNewId   = 0;
            ClientesDAL currentDAL = GetDAL();

            if (IsValid(newEntity, out strErrores))
            {
                intNewId = currentDAL.InsertScalar(newEntity);
            }

            return(intNewId);
        }