Пример #1
0
    private void PopulateRating()
    {
        RatingService ratingService = new RatingService();

        if ((string)Session["Username"] != null)
        {
            if (ratingService.DidRateAlready((string)Session["Username"], movieID) == false)
            {
                rating.Visible = true;
            }
            else
            {
                rating.Visible = false;
                RatingMsg      = "You Voted Already!";
            }
        }
        else
        {
            rating.Visible = false;
        }
    }