public async Task LoadVideo(VideoListDTO video) { PornRepository PornRep = new PornRepository(); ShowVideo = true; Video = await PornRep.GetVideoByIdAsync(video.Id, currentCulture); }
public async Task LoadVideo(VideoListDTO video) { LoadRecommended = false; ShowVideo = true; Video = await PornRep.GetVideoByIdAsync(video.Id, currentCulture); if (!History.Select(x => x.Id).Contains(video.Id)) { History.Insert(0, video); } if (History.Count == 5) { History.RemoveAt(History.Count - 1); } }