Esempio n. 1
0
        public async Task <IActionResult> UpdateOne(string id, [FromBody] StandardComponent standardComponent)
        {
            if (ModelState.IsValid)
            {
                standardComponent.Id = id;
                await _standardRepository.UpdateAsync(id, standardComponent);

                _logger.Info("Updated standard component: {@standardComponent}", standardComponent);
                return(Ok());
            }

            return(BadRequest());
        }