Пример #1
0
        public async Task Handle(Declaration_CreateCommand command)
        {
            Declaration declaration = new Declaration()
            {
                Id = command.Id, Description = command.Description, Title = command.Title
            };
            Declaration_CreateEvent declarationCreateEvent = new Declaration_CreateEvent()
            {
                Id = command.Id, Description = command.Description, Title = command.Title
            };
            await repository.Set(declaration);

            await eventRepository.Set(declarationCreateEvent);
        }
Пример #2
0
 public void On(Declaration_CreateEvent create)
 {
     Id          = create.Id;
     Title       = create.Title;
     Description = create.Description;
 }