public async Task <IActionResult> Delete(Guid id)
        {
            try
            {
                _useCaseFactory.DeleteContactUseCase().Execute(id);
                await _hub.SendUpdateAsync(MessageType.ContactDelete, id);

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