Esempio n. 1
0
        public IActionResult GetPersons()
        {
            var result = _personService.GetRecords();

            if (!result.WasSuccessful)
            {
                return(NotFound());
            }

            return(Ok(result.Records.ToList()));
        }