TL;DR I declined that flag because the answer at issue is an answer; it's just a bad one that also includes an off-topic new question. The off-topic, new-question part is not an answer, but the rest of it is. Whether or not it's a correct answer is not the issue.
The Answer in Question
The OP's answer was just this:
Hi I used the stupid way to achieve my goal. Can you help me to improve my code ?
[giant MVC code blobs]
So, OP "used the stupid way to achieve [OP's] goal." In other words, the goal was achieved, the question was answered (even if in a "stupid way"), and everybody's theoretically at least a little happier than they were. The important thing is that OP's self-answer tried to answer the question.
At least, that's how I read it. It's certainly possible that OP meant, "This is the busted code I should have included in the question itself; this is what I need help with." But that's not how I read it. Before I'm willing to nuke content—and I do nuke a lot of it—it needs to be pretty clear that it's not constructive. This looks to me like a solution, even if a bad one, rather than part of the question.
NAA Flags, SO Philosophy, and Such
Now, let's look at the rationale for your flag in this question:
I then flagged OP's 'self answer' with a NAA flag. The reason was that it's just some alternative code the OP tried, which not only does not work, it makes no attempt to answer the actual question. The OP subsequently copied the alternative code into this new question which I also dupe hammered.
(emphasis added). When moderators look at flags, we're not looking for whether the answer is correct and contains working code. In fact, one standard reason we decline flags is:
flags should not be used to indicate technical inaccuracies, or an altogether wrong answer
When you raise a NAA flag, you're saying, "This isn't an answer at all - it's completely irrelevant, spam, a new question, a thank you, or something else that doesn't even try to answer the question." We review the flag accordingly.
In terms of the famous post Your answer is in another castle: when is an answer not an answer?, a NAA flag is appropriate for the orange, not the half-eaten or rotten apples.

So, What Happened Here?
When I looked at your flag, I didn't look to see if the new code works. That would require me to do one of two things: (1) read all of it and look for errors, or (2) fire up a VM, fire up Visual Studio, and drop in the code to look for problems that way. That's not what a NAA flag is for, and, frankly, we don't have nearly enough time to do that kind of deep-dive analysis on every answer that gets a flag.
The post doesn't look at all like "it makes no attempt to answer the actual question," to borrow your phrase. It looks like an attempt to answer it, at least partially: an attempt that could use improvement (and explicitly asked for it), but an attempt nonetheless.
You mentioned that OP copied the code into a new question. Okay, so be it. That doesn't mean it can't be an answer to the original question. And as you probably know, people copy and paste code from SO answers into new SO questions all the time. In any case, I don't know about that new question from looking at a simple "not an answer" flag.
What I saw was, effectively, "I used the stupid way to achieve my goal. Here are the code blobs I used. Can anyone make them better?" That is, an answer, but not a great one, with a new question tacked on. The answer may be "stupid," in OP's words, but it's still an answer. So, I wrote:
It's an answer. It also contains a new question, but it's still an answer.
And there you have it.