public ActionResult Create(RatingView ratingView) { if (ModelState.IsValid) { ratingView.ItemId = (int)Session["Message"]; ratingView.UserId = OnlineUsers.CurrentUser.Id; DB.AddRating(ratingView); return(RedirectToAction("Index", "Items")); } return(View(ratingView)); }