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 }); }
public WallpaperCountResult GetViewCount(Model.Wallpaper wallpaper) { var result = _repository.GetForWallpaper <WallpaperAction>(wallpaper.Id); return(new WallpaperCountResult { Count = result.Count(), WallpaperId = wallpaper.Id }); }
public IEnumerable <WallpaperAction> GetAll(Model.Wallpaper wallpaper) => _repository.GetAll(wallpaper.Id);