public async Task <IActionResult> GetReceivedMessagesForUser(string username)
        {
            if (String.IsNullOrEmpty(username))
            {
                return(BadRequest("Username is missing"));
            }

            var messages = _inMemoryStorage.GetMessagesByUserName(username);

            if (messages.Count == 0)
            {
                return(NotFound("User not found or has no messages"));
            }

            return(Ok(messages));
        }