コード例 #1
0
        public SendSessionStatusChangeEmail(Event @event, Session session, User user)
        {
            ToName = user.GetDisplayName();
            ToEmail = user.Email;

            EventName = @event.Name;
            SessionName = session.Name;
            EventDate = @event.Start.DateTime.ToLongDateString();
            SessionStatus = session.Status;
            Subject = "Your " + EventName + " Session Has Been " + SessionStatus;
            Template = "SessionStatusChange";
        }
コード例 #2
0
 public void ChangeCurrentEvent(Event currentEvent)
 {
     currentEvent.IsCurrent = true;
     httpContext.Application.Set(CurrentEventKey, currentEvent);
     httpContext.Session.Remove(CurrentRegistrationStatusKey);
 }