Exemple #1
0
        public bool findById()
        {
            bool exist = false;

            DAL.TIENDA tienda = CommomBC.entities.TIENDA.FirstOrDefault(em => em.ID_TIENDA == id_tienda);
            if (tienda != null)
            {
                exist = true;
            }

            return(exist);
        }
Exemple #2
0
        public bool findTiendaByIdUser()
        {
            bool exist = false;

            try
            {
                DAL.TIENDA tienda = CommomBC.entities.TIENDA.FirstOrDefault(em => em.USUARIO_FK == id);

                if (tienda != null)
                {
                    exist = true;
                }
            }
            catch (Exception)
            {
                return(exist);
            }


            return(exist);
        }