Esempio n. 1
0
        public static int InsertScalar(Usuario newEntity)
        {
            int         intNewId;
            UsuariosDAL currentDAL = GetDAL();

            intNewId = currentDAL.InsertScalar(newEntity);
            return(intNewId);
        }
Esempio n. 2
0
        public static int InsertValid(Usuario newEntity, out string strErrores)
        {
            int         intNewId   = 0;
            UsuariosDAL currentDAL = GetDAL();

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

            return(intNewId);
        }