public async Task <EventRoomResponse> Execute(CreateEventRoomCommand command) { var eventRoom = await _eventRoomService .Create(command); await Commit(); return(new EventRoomResponse(eventRoom)); }
public async Task <EventRoom> Create(CreateEventRoomCommand command) { var eventRoom = new EventRoom(command); await _eventRoomRepository .AddAsync(eventRoom); return(eventRoom); }
public EventRoom(CreateEventRoomCommand command) : this() { Name = command.Name; Capacity = command.Capacity; }