public void linkAddToQueue_Click(object sender, EventArgs e) { if (!SessionManager.IsLoggedIn) { RedirectToLogin(); } TransitPlaceQueue tpq = SessionManager.PlaceService.GetOrCreatePlaceQueueByName( SessionManager.Ticket, SessionManager.AccountId, "My Queue"); TransitPlaceQueueItem tpqi = new TransitPlaceQueueItem(); tpqi.PlaceQueueId = tpq.Id; tpqi.PlaceId = RequestId; SessionManager.CreateOrUpdate <TransitPlaceQueueItem>( tpqi, SessionManager.PlaceService.CreateOrUpdatePlaceQueueItem); ReportInfo(string.Format("Added {0} to <a href='AccountPlaceQueueManage.aspx'>your queue</a>.", Renderer.Render(Place.Name))); }
public int CreateOrUpdatePlaceQueueItem(string ticket, TransitPlaceQueueItem queueitem) { return WebServiceImpl<TransitPlaceQueueItem, ManagedPlaceQueueItem, PlaceQueueItem>.CreateOrUpdate( ticket, queueitem); }
public void linkAddToQueue_Click(object sender, EventArgs e) { if (!SessionManager.IsLoggedIn) { RedirectToLogin(); } TransitPlaceQueue tpq = SessionManager.PlaceService.GetOrCreatePlaceQueueByName( SessionManager.Ticket, SessionManager.AccountId, "My Queue"); TransitPlaceQueueItem tpqi = new TransitPlaceQueueItem(); tpqi.PlaceQueueId = tpq.Id; tpqi.PlaceId = RequestId; SessionManager.CreateOrUpdate<TransitPlaceQueueItem>( tpqi, SessionManager.PlaceService.CreateOrUpdatePlaceQueueItem); ReportInfo(string.Format("Added {0} to <a href='AccountPlaceQueueManage.aspx'>your queue</a>.", Renderer.Render(Place.Name))); }