public async Task <IActionResult> Put(ContactWithId contact)
        {
            try
            {
                ContactWithId result = _useCaseFactory.UpdateContactUseCase().Execute(contact);
                await _hub.SendUpdateAsync(MessageType.ContactUpdate, result);

                return(Ok(result));
            }
            catch (ContactAlreadyExistsException e)
            {
                return(StatusCode(StatusCodes.Status422UnprocessableEntity, e));
            }
            catch (ContactNotFoundException)
            {
                return(NotFound());
            }
            catch (Exception e)
            {
                return(StatusCode(StatusCodes.Status500InternalServerError, e));
            }
        }