Exemple #1
0
        public static int InsertScalar(Usuario newEntity)
        {
            int         intNewId;
            UsuariosDAL currentDAL = GetDAL();

            intNewId = currentDAL.InsertScalar(newEntity);
            return(intNewId);
        }
Exemple #2
0
        public static List <Usuario> GetInActivos()
        {
            List <Usuario> returnList = new List <Usuario>();
            UsuariosDAL    currentDAL = GetDAL();

            returnList = currentDAL.GetByActivo(false);

            return(returnList);
        }
Exemple #3
0
        public static List <Usuario> GetAll()
        {
            List <Usuario> returnList = new List <Usuario>();
            UsuariosDAL    currentDAL = GetDAL();

            returnList = currentDAL.GetAll();

            return(returnList);
        }
Exemple #4
0
        public static Usuario GetByEmailClave(string strEmail, string strClave)
        {
            Usuario     returnEntity;
            UsuariosDAL currentDAL = GetDAL();

            returnEntity = currentDAL.GetByEmailClave(strEmail, strClave);

            return(returnEntity);
        }
Exemple #5
0
        public static Usuario GetById(int intId)
        {
            Usuario     returnEntity;
            UsuariosDAL currentDAL = GetDAL();

            returnEntity = currentDAL.GetById(intId);

            return(returnEntity);
        }
Exemple #6
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);
        }