예제 #1
0
        public async Task <IActionResult> DeletePhoneBook([FromRoute] int id)
        {
            var phoneBook = await _phoneBookService.GetPhoneBookById(id);

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

            return(Ok(await _phoneBookService.DeletePhoneBookAsync(phoneBook)));
        }