public IActionResult Post([FromBody] PhoneBookContactDto phoneBookContactDto)
        {
            //Check if contact exists then update, otherwise insert new.
            bool result;

            if (_phoneBookRepository.CheckifContactExists(phoneBookContactDto.Name))
            {
                //Check if the entry already exists and return 409 if true
                if (_phoneBookRepository.CheckifContactEntryExists(phoneBookContactDto))
                {
                    return(StatusCode(StatusCodes.Status409Conflict));
                }
                result = _phoneBookRepository.UpdateContact(phoneBookContactDto);
            }
            else
            {
                result = _phoneBookRepository.InsertContact(phoneBookContactDto);
            }


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

            return(Ok());
        }