Why I cannot use Foreach and If-Statement C# in Razor View Index.cshtml? I am trying to execute this code