mvc write to console

C#
 Debug.WriteLine("My debug string here");
Source

Also in C#: