Пример #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int?offerId = GetOfferId();

            if (offerId.HasValue)
            {
                int attractionCount = service.GetAttractions(offerId.Value).Count();
                AttractionPanel.Visible = attractionCount > 0;
            }
            if (User.Identity.IsAuthenticated)
            {
                attractionIdToReservedMap = service.GetAttractionIdToReservedMap(service.GetClientId(User.Identity.Name));
            }
        }