Пример #1
0
        public async Task <IActionResult> CreateThingAsync([FromBody][Required] Domain.Entities.Thing thing)
        {
            _logger.LogDebug("Start Post to /things");

            await _thingService.SendCreateThingCommandAsync(thing);

            _logger.LogDebug("Queued command to create thing: {thingName}", thing.Name);

            return(Accepted());
        }