Exemple #1
0
        public async Task <Visit> VisitSlide(string courseId, Guid slideId, string userId)
        {
            if (string.IsNullOrEmpty(userId))
            {
                return(null);
            }
            await visitsRepo.AddVisit(courseId, slideId, userId, GetRealClientIp());

            return(visitsRepo.FindVisit(courseId, slideId, userId));
        }