public List <Fontedados> GetList() { using (var dal = DatabaseConnection.GetDataAccessLayer()) { var dao = new FontedadosDal(dal); try { return(dao.GetList()); } catch (Exception ex) { throw ex; } } }
public List <Fontedados> GetList(string conditions = null, bool completeRelatedObjects = false) { using (var dal = DatabaseConnection.GetDataAccessLayer()) { var dao = new FontedadosDal(dal); try { var list = dao.GetList(conditions); foreach (Fontedados p in list) { CompleteRelatedObjects(p, dal); } return(list); } catch (Exception ex) { throw ex; } } }