Exemple #1
0
        public async Task <IActionResult> GetPeopleAsync()
        {
            if (User.Identity.IsAuthenticated)
            {
                var people = await _repository.GetAllPeople();

                return(Ok(people));
            }

            else
            {
                return(StatusCode(418));
            }
        }