public SpecialOfferCollection GetSpecialOffersCollection(string where, string orderBy) { SpecialOfferData data = new SpecialOfferData(); SpecialOfferCollection col = new SpecialOfferCollection(); try { col = data.GetAllSpecialOffersDynamicCollection(where, orderBy); } catch (Exception ex) { log.Write(ex.Message, "GetSpecialOffersCollection"); throw (ex); } finally { data = null; } return(col); }
public SpecialOfferCollection GetAllSpecialOffersCollection() { SpecialOfferData data = new SpecialOfferData(); SpecialOfferCollection col = new SpecialOfferCollection(); try { col = data.GetAllSpecialOffersCollection(); } catch (Exception ex) { log.Write(ex.Message, "GetAllSpecialOffersCollection"); throw (ex); } finally { data = null; } return(col); }