public static List<RefLivreBO> InsertLivre( String pISBN, String pTitre, String pDescription, String pAuteur, String pLangue, String pEditeur, DateTime pTimestamp, String pImageUrl ) { List<RefLivreBO> result; try { using (var oRefLivreDal = new RefLivreDAL(Util.GetConnection())) { result = oRefLivreDal.RefLivreBO_InsertLivre( pISBN, pTitre, pDescription, pAuteur, pLangue, pEditeur, pTimestamp, pImageUrl ).ToList(); } } catch (Exception ex) { throw; } return result; }
public static List<RefLivreBO> SelectAll() { List<RefLivreBO> lstRefLivre; try { using (var oReflIvreDal = new RefLivreDAL(Util.GetConnection())) { lstRefLivre = oReflIvreDal.RefLivreBO_SelectAll().ToList(); } } catch (Exception ex) { throw; } return lstRefLivre; }
public static RefLivreBO SelectById(Int32 pRefLivreId) { RefLivreBO result = null; try { using (var refLivreDal = new RefLivreDAL(Util.GetConnection())) { var lstRefLivreBo = refLivreDal.RefLivreBO_SelectById(pRefLivreId).ToList(); if (lstRefLivreBo.Count > 0) { result = lstRefLivreBo[0]; } } } catch (Exception ex) { throw; } return result; }