示例#1
0
 public async Task Post(AddGameEventSource command)
 {
     await SendAsync(command.Bind(c => c.Id, command.Id == default ? Guid.NewGuid() : command.Id));
 }
        public async Task <ActionResult> Post(AddGameEventSource command)
        {
            await SendAsync(command.Bind(c => c.Id, command.Id == default ? Guid.NewGuid() : command.Id));

            return(Accepted());
        }
        public async Task <ActionResult> Post(AddGameEventSource command)
        {
            await SendAsync(command.Bind(c => c.Id, command.Id == Guid.Empty ? Guid.NewGuid() : command.Id));

            return(Created($"game-event-sources/{command.Id}", command));
        }