public ActionResult IsReading(int id) { ApplicationUser user = Session["User"] as ApplicationUser; SqlQueries.AddIdToMaterialTextDatabase(user.UserName, id); var material = (MaterialText)Session["TextReading"]; SetPXLevel(5); ViewBag.IsReading = true; return(View("TextReading", material)); }