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)); }