public static List<BibliothequeBO> SelectByAdministrateurId(Int32 pAdministrateurId) { List<BibliothequeBO> result; try { using (var bibliothequeProxy = new BibliothequeDAL(Util.GetConnection())) { result = bibliothequeProxy.BibliothequeDAL_SelectByAdministrateurId(pAdministrateurId).ToList(); } } catch (Exception ex) { throw; } return result; }
public static List<BibliothequeBO> SelectAll() { List<BibliothequeBO> result; try { using (var bibliothequeProxy = new BibliothequeDAL(Util.GetConnection())) { result = bibliothequeProxy.BibliothequeDAL_SelectAll().ToList(); } } catch (Exception ex) { throw; } return result; }
public static BibliothequeBO SelectById(Int32 pAdministrateurId) { BibliothequeBO result = null; try { using (var bibliothequeProxy = new BibliothequeDAL(Util.GetConnection())) { var lstBibliotheque = bibliothequeProxy.BibliothequeDAL_SelectById(pAdministrateurId).ToList(); if (lstBibliotheque.Any()) { result = lstBibliotheque[0]; } } } catch (Exception ex) { throw; } return result; }