I am writing a statement and it compiles, but the compiler [VS] never tells me that I put the semicolon two times.
This means in ASP.NET MVC 3
return
C# compiler does not allow ;; between if and else without braces and compiler will throw error in the below case.
if (condition == true)
; ;
else
;
Compiler Error:
Error CS1513 } expected and one warning "Possible mistaken empty statement"
So if you remove one semicolon it will work perfectly(or you need to add braces).