Пример #1
0
        public bool AddImages(VideoGalleryModel video)
        {
            var objgallery = video.ConvertToObject <VideoGallery>();

            if (video.Id != 0)
            {
                objgallery.Id = video.Id;
                return(_objRepository.UpdateVideo(objgallery));
            }
            return(_objRepository.AddVideo(objgallery));
        }
Пример #2
0
        public bool UpdateImage(VideoGalleryModel video)
        {
            var objgallery = video.ConvertToObject <VideoGallery>();

            return(_objRepository.UpdateVideo(objgallery));
        }