public ActionResult SubmitRating(tblRatings objRating) { TblUser sessionUser = (TblUser)Session["UserSession"]; objRating.UserId = sessionUser.UserId; objRating.TenantId = sessionUser.TenantId; //objRating.ActivityType = "Quiz"; var result = quizRepository.CaptureRatings(objRating); return(RedirectToAction("MyAssignments")); }