public async Task <Visit> VisitSlide(string courseId, string slideId) { if (!User.Identity.IsAuthenticated) { return(null); } var userId = User.Identity.GetUserId(); await visitsRepo.AddVisit(courseId, slideId, userId); return(visitsRepo.GetVisiter(slideId, userId)); }