Exemplo n.º 1
0
        public IActionResult Delete([FromBody] PhoneBookContactDto phoneBookContactDto)
        {
            bool result = _phoneBookRepository.DeleteContact(phoneBookContactDto);

            if (!result)
            {
                return(StatusCode(StatusCodes.Status500InternalServerError));
            }

            return(Ok());
        }