public List <Brokermqtt> GetList() { using (var dal = DatabaseConnection.GetDataAccessLayer()) { var dao = new BrokermqttDal(dal); try { return(dao.GetList()); } catch (Exception ex) { throw ex; } } }
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; } } }