Example #1
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";
            Day = 1;

            Status = SessionStatus.Pending;

            Raise(new SessionCreated {PresentationId = Id});
        }
Example #2
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});
        }
Example #3
0
        public object BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext)
        {
            SessionCategory category = bindingContext.ValueProvider.GetValue(bindingContext.ModelName).AttemptedValue;

            return(category);
        }