コード例 #1
0
        public void UpdateNewsVideo()
        {
            BLModel.NewsID      = 2;
            BLModel.NewsVideos  = "Video testtt 11";
            BLModel.NewsVideoID = 5;
            int result = _newsVideoBL.UpdateNewsVideo(BLModel);

            Assert.IsTrue(result > 0, "Unable to update");
        }
コード例 #2
0
 public int UpdateNewsVideo(DTO.NewsVideo newsVideo)
 {
     return(_newsVideo.UpdateNewsVideo(Mapper.Map <DTO.NewsVideo, HCRGUniversity.Core.Data.Model.NewsVideo>(newsVideo)));
 }