Beispiel #1
0
        public WallpaperCountResult GetViewCount(Guid clientId, Model.Wallpaper wallpaper)
        {
            var result = _repository.GetForClient <WallpaperAction>(clientId, wallpaper.Id);

            return(new WallpaperCountResult
            {
                Count = result.Count(),
                WallpaperId = wallpaper.Id
            });
        }
Beispiel #2
0
        public WallpaperCountResult GetViewCount(Model.Wallpaper wallpaper)
        {
            var result = _repository.GetForWallpaper <WallpaperAction>(wallpaper.Id);

            return(new WallpaperCountResult
            {
                Count = result.Count(),
                WallpaperId = wallpaper.Id
            });
        }
Beispiel #3
0
 public IEnumerable <WallpaperAction> GetAll(Model.Wallpaper wallpaper)
 => _repository.GetAll(wallpaper.Id);