public ActionResult Details(int id) { if (Session["log"] == null) { return(RedirectToAction("Login", "Home", null)); } LessonViewModel Lesson = LessonService.GetByID(id); return(View(Lesson)); }