예제 #1
0
        public int IncreaseViewsOf(long videoId)
        {
            var sql = String.Format("UPDATE Video SET Hits = Hits + 1 WHERE VideoId = {0}", videoId);

            return(_videoRepository.ExecuteCommand(sql));
        }