protected bool IsOfferReserved(int aid)
        {
            int?offerId = service.GetOfferIdByAttractionId(aid);

            if (offerId.HasValue && User.Identity.IsAuthenticated)
            {
                return(service.IsOfferReserved(offerId.Value, service.GetClientId(User.Identity.Name)));
            }
            return(false);
        }
Exemplo n.º 2
0
        protected void btnBackToOffer_Click(object sender, EventArgs e)
        {
            int?attractionId = GetAttractionId();

            if (attractionId.HasValue)
            {
                int?offerId = service.GetOfferIdByAttractionId(attractionId.Value);
                if (offerId.HasValue)
                {
                    Response.Redirect("OfferDetails?oid=" + offerId.Value);
                }
            }
        }