/// <inheritdoc /> public async Task AddAsync(CreateDirectPlaceCommand command, CancellationToken cancellationToken) { var place = new PlaceData { Id = Guid.NewGuid(), Member = new MemberData { Id = command.To }, Name = command.To.ToString() }; _chatData.Add(place); }
public async Task <IActionResult> Post([FromBody] CreateDirectPlaceCommand command, CancellationToken cancellationToken) { await _placesData.AddAsync(command, cancellationToken); return(this.Ok()); }