Exemplo n.º 1
0
        public async Task <IActionResult> GetPhoneBookById([FromRoute] int id)
        {
            var phoneBook = await _phoneBookService.GetAllPhoneBookItems(id);

            if (phoneBook == null)
            {
                return(NotFound());
            }
            return(Ok(phoneBook));
        }