Exemplo n.º 1
0
        public async Task <IActionResult> CreateBulk([FromBody] List <StandardComponent> standardComponents)
        {
            standardComponents.ForEach(a =>
            {
                a.Id = DataUtil.GenerateUniqueId();
            });
            _logger.Info("Created standard components: {@standardComponents}", standardComponents);
            await _standardRepository.AddBulkAsync(standardComponents);

            return(Ok());
        }