예제 #1
0
        public static List <News> GetNewsBySearchkey(string searchKey)
        {
            SqlNewsEventsProvider provider = new SqlNewsEventsProvider();

            return(provider.GetNewsBySearchKey(searchKey));
        }
예제 #2
0
        public static bool DeleteVideoGallery(long id)
        {
            SqlNewsEventsProvider provider = new SqlNewsEventsProvider();

            return(provider.DeleteVideoGallery(id));
        }
예제 #3
0
        public static List <News> GetAllNews()
        {
            SqlNewsEventsProvider provider = new SqlNewsEventsProvider();

            return(provider.GetAllNews());
        }
예제 #4
0
        public static bool UpdateVideoGallery(VideoGallery gallery)
        {
            SqlNewsEventsProvider provider = new SqlNewsEventsProvider();

            return(provider.UpdateVideoGallery(gallery));
        }
예제 #5
0
        public static long InsertVideoGallery(VideoGallery gallery)
        {
            SqlNewsEventsProvider provider = new SqlNewsEventsProvider();

            return(provider.InsertVideoGallery(gallery));
        }
예제 #6
0
        public static VideoGallery GetVideoGalleryById(long id)
        {
            SqlNewsEventsProvider provider = new SqlNewsEventsProvider();

            return(provider.GetVideoGalleryById(id));
        }
예제 #7
0
        public static List <VideoGallery> GetAllVideoGallery()
        {
            SqlNewsEventsProvider provider = new SqlNewsEventsProvider();

            return(provider.GetAllVideoGallery());
        }
예제 #8
0
        public static long InsertNews(News news)
        {
            SqlNewsEventsProvider provider = new SqlNewsEventsProvider();

            return(provider.InsertNews(news));
        }
예제 #9
0
        public static bool UpdateNews(News news)
        {
            SqlNewsEventsProvider provider = new SqlNewsEventsProvider();

            return(provider.UpdateNews(news));
        }
예제 #10
0
        public static News GetNewsById(long?id)
        {
            SqlNewsEventsProvider provider = new SqlNewsEventsProvider();

            return(provider.GetNewsById(id));
        }