public List <OwnerDataModel> GetAllUsers()
        {
            var shareOwnerControlClient = new ShareOwnerControlClient("http://localhost:8758");
            var usersList = shareOwnerControlClient.ApiShareOwnerGetAllUsersGetAsync().Result;

            return(usersList.ToList());
        }
        public List <ShareOwnerDataModel> GetAllSharesByUserId([FromBody] Guid userId)
        {
            var shareOwnerControlClient = new ShareOwnerControlClient("http://localhost:8758");
            var sharesList = shareOwnerControlClient.ApiShareOwnerGetAllSharesForUserByUserIdGetAsync(userId).Result;

            return(sharesList.ToList());
        }
        public void CreateOwner([FromBody] Guid shareHolderId)
        {
            var shareOwnerControlClient = new ShareOwnerControlClient("http://localhost:8758");

            shareOwnerControlClient.ApiShareOwnerCreateOwnerPostAsync(shareHolderId);
        }
        public void CreateStock(string stockId, int sharePrice)
        {
            var shareOwnerControlClient = new ShareOwnerControlClient("http://localhost:8758");

            shareOwnerControlClient.ApiShareOwnerCreateStockByStockIdPostAsync(stockId, sharePrice);
        }