Exemple #1
0
        public void Update(string title, string description, SessionLevel level, SessionCategory category, string track, string timeSlot, string room, int day)
        {
            Title = title;
            Description = description;
            Level = level;
            Category = category;
            Track = string.IsNullOrEmpty(track) ? "None" : track;
            Slot = string.IsNullOrEmpty(timeSlot) ? "None" : timeSlot;
            Room = string.IsNullOrEmpty(room) ? "None" : room;
            Day = day == 0 ? 1 : day;

            Raise(new PresentationChanged {PresentationId = Id});
        }
Exemple #2
0
        public Session(UserProfile user, string title, string description, SessionLevel level, SessionCategory category)
        {
            User = user;
            UserId = user.Id;
            Title = title;
            Description = description;
            Level = level;
            Category = category;
            Track = "None";
            Slot = "None";
            Room = "None";
            Day = 1;

            Status = SessionStatus.Pending;

            Raise(new SessionCreated {PresentationId = Id});
        }