public async Task <IActionResult> GetAll()
        {
            var blockingUser = await GetCurrentUserAsync();

            if (blockingUser is null ||
                blockingUser is default(User))
            {
                return(Unauthorized("No authorized user found.\nPlease log in by using your credentials."));
            }

            // Get blockedUsers.
            try
            {
                var blockedUsers = await _blockedUserService.GetAllBlockedUsersAsync(blockingUser.Id);

                if (blockedUsers is null ||
                    blockedUsers is default(IList <BlockedUser>))
                {
                    return(NotFound("No blockedUser found."));
                }

                return(Ok(await PrepareBlockedUserModelAsync(blockedUsers)));
            }
            catch (Exception ex)
            {
                await _logService.LogErrorAsync(new CreateLogModel()
                {
                    UserId    = blockingUser.Id,
                    Title     = "GetAll Error",
                    Message   = "Error happened in BlockedUser Controller, GetAll function",
                    Exception = ex
                });

                return(NotFound("No blockedUser found."));
            }
        }