Ejemplo n.º 1
0
        public List <Brokermqtt> GetList()
        {
            using (var dal = DatabaseConnection.GetDataAccessLayer())
            {
                var dao = new BrokermqttDal(dal);

                try
                {
                    return(dao.GetList());
                }
                catch (Exception ex)
                {
                    throw ex;
                }
            }
        }
Ejemplo n.º 2
0
        public List <Brokermqtt> GetList(string conditions = null, bool completeRelatedObjects = false)
        {
            using (var dal = DatabaseConnection.GetDataAccessLayer())
            {
                var dao = new BrokermqttDal(dal);

                try
                {
                    var list = dao.GetList(conditions);
                    foreach (Brokermqtt p in list)
                    {
                        CompleteRelatedObjects(p, dal);
                    }
                    return(list);
                }
                catch (Exception ex)
                {
                    throw ex;
                }
            }
        }