/// <param name="user1Id">Used to specify the User1.</param>
        /// <param name="user2Id">Used to specify the User2.</param>
        public async Task <IActionResult> GetBlockById([FromQuery] Guid user1Id, [FromQuery] Guid user2Id)
        {
            var block = await blockService.GetByIdAsync(user1Id, user2Id);

            if (block == null)
            {
                return(NotFound());
            }

            return(Ok(mapper.Map <BlockResponseDto>(block)));
        }