C# razor view write to console code example Example: mvc write to console Debug.WriteLine("My debug string here");