Exemple #1
0
        public async Task <IActionResult> ConnectAddressToContact(int contactId, int addressId)
        {
            try
            {
                var result = await contactManager.ConnectAddressToContact(contactId, addressId);

                if (result == true)
                {
                    return(NoContent());
                }

                return(BadRequest());
            }
            catch (System.Exception)
            {
                throw;
            }
        }