public void HandleCommand(UpdateEventPostStatusCommand command) { eventRepository.UpdateEventPostStatus(command.PostStatus, command.EventId); }
/// <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); }