Exemple #1
0
 public void HandleCommand(UpdateEventPostStatusCommand command)
 {
     eventRepository.UpdateEventPostStatus(command.PostStatus, command.EventId);
 }
Exemple #2
0
        /// <summary>
        /// store changed event status
        /// </summary>
        /// <param name="eventId">the id of the event we are updating</param>
        /// <param name="postStatus">the new post status</param>
        public void UpdateEventPostStatus(int eventId, int postStatus)
        {
            UpdateEventPostStatusCommand command = new UpdateEventPostStatusCommand(eventId, postStatus);

            commandBus.Execute(command);
        }