Beispiel #1
0
        public IActionResult AddPersons([FromBody] List <PersonModel> models)
        {
            var result = _personService.AddRange(models);

            if (!result.WasSuccessful)
            {
                return(NotFound());
            }
            result.Records.ForEach(model =>
            {
                _dataMinerService.PostMessage(model);
            });

            return(Ok());
        }