Ejemplo n.º 1
0
        /// <summary>
        /// WGR Gets video by product identifier
        /// </summary>
        /// <param name="productId">Product identifier</param>
        /// <returns>Video</returns>
        ///
        public virtual int InsertVideo(int productId, string mms_video_url, int mms_item_id)
        //public int InsertVideo()
        {
            MmsNopVideo video = new MmsNopVideo();

            if (productId == 0)
            {
                return(1);
            }

            video.MmsVideoUrl = mms_video_url;
            video.ProductId   = productId;
            video.MmsItemId   = mms_item_id;

            _videoRepository.Insert(video);

            return(2);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// WGR Gets video by product identifier
 /// </summary>
 /// <param name="productId">Product identifier</param>
 /// <returns>Video</returns>
 ///
 public virtual int UpdateVideo(MmsNopVideo video)
 {
     _videoRepository.Update(video);
     return(1);
 }